summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-29 18:01:43 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-29 18:02:09 -0400
commit5262cde6a6dbf7c924508423093aaac0d17a95b5 (patch)
tree48a304fb2fad15f907fe3806c30eb0c869f5cc19 /lib
parente18639551d4c2915af706c70f98c67aa04b9c89e (diff)
downloadnextcloud-server-5262cde6a6dbf7c924508423093aaac0d17a95b5.tar.gz
nextcloud-server-5262cde6a6dbf7c924508423093aaac0d17a95b5.zip
Add additional error handling for emailing private links
Diffstat (limited to 'lib')
-rw-r--r--lib/mail.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mail.php b/lib/mail.php
index 7eb2c4770c5..0ac9a97c1bf 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -83,7 +83,8 @@ class OC_Mail {
unset($mailo);
OC_Log::write('mail', 'Mail from '.$fromname.' ('.$fromaddress.')'.' to: '.$toname.'('.$toaddress.')'.' subject: '.$subject, OC_Log::DEBUG);
} catch (Exception $exception) {
- OC_Log::write('mail', $exception->getMessage(), OC_Log::DEBUG);
+ OC_Log::write('mail', $exception->getMessage(), OC_Log::ERROR);
+ throw($exception);
}
}