From 2f68a8ef5e5439d987947620a6c11f82f7be7327 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 24 Oct 2011 19:34:43 +1300 Subject: [PATCH] [AwlDatabase] Throw an exception when we can't rollback a transaction. --- inc/AwlDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/AwlDatabase.php b/inc/AwlDatabase.php index 74b4295..c9a734d 100644 --- a/inc/AwlDatabase.php +++ b/inc/AwlDatabase.php @@ -131,7 +131,7 @@ class AwlDatabase extends AwlDBDialect { $this->txnstate = 0; } else { - trigger_error("Cannot rollback unless a transaction is already active.",E_USER_ERROR); + throw new Exception("Cannot rollback unless a transaction is already active."); } return true; } -- 2.11.4.GIT