diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-26 07:52:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-26 07:52:13 +0000 |
commit | 72db95c988c57d9ac1b073e9d8a587041d8906f0 (patch) | |
tree | 17ad2eb17f2b9b76bdaff14ac4bc0e0106680f0c /modules/comment | |
parent | 164ac036ac57868723db0b2789961419e92778c4 (diff) | |
download | brdo-72db95c988c57d9ac1b073e9d8a587041d8906f0.tar.gz brdo-72db95c988c57d9ac1b073e9d8a587041d8906f0.tar.bz2 |
- Patch #711108 by Berdir: better exception reporting for watchdog() in the database system.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 66ccef6bc..c997ea2e5 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1529,7 +1529,8 @@ function comment_save($comment) { } } catch (Exception $e) { - $transaction->rollback('comment', $e->getMessage(), array(), WATCHDOG_ERROR); + $transaction->rollback('comment'); + watchdog_exception('comment', $e); throw $e; } |