diff options
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); } } |