From 72db95c988c57d9ac1b073e9d8a587041d8906f0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 26 May 2010 07:52:13 +0000 Subject: - Patch #711108 by Berdir: better exception reporting for watchdog() in the database system. --- modules/user/user.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/user') diff --git a/modules/user/user.module b/modules/user/user.module index 0256040b7..ad580dcc3 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -548,7 +548,8 @@ function user_save($account, $edit = array(), $category = 'account') { return $user; } catch (Exception $e) { - $transaction->rollback('user', $e->getMessage(), array(), WATCHDOG_ERROR); + $transaction->rollback(); + watchdog_exception('user', $e); throw $e; } } -- cgit v1.2.3