summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-26 07:52:13 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-26 07:52:13 +0000
commit72db95c988c57d9ac1b073e9d8a587041d8906f0 (patch)
tree17ad2eb17f2b9b76bdaff14ac4bc0e0106680f0c /modules/comment
parent164ac036ac57868723db0b2789961419e92778c4 (diff)
downloadbrdo-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.module3
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;
}