diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-29 18:01:43 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-29 18:02:09 -0400 |
commit | 5262cde6a6dbf7c924508423093aaac0d17a95b5 (patch) | |
tree | 48a304fb2fad15f907fe3806c30eb0c869f5cc19 /lib | |
parent | e18639551d4c2915af706c70f98c67aa04b9c89e (diff) | |
download | nextcloud-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.php | 3 |
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); } } |