From f615e176e26ca78ebaa2f81758481ecc6051b3ca Mon Sep 17 00:00:00 2001 From: Naomi Date: Mon, 11 Nov 2013 16:36:21 -0500 Subject: [PATCH] CC-5555 : Implement simple caching for preferences better to include the key in the error message --- airtime_mvc/application/models/Preference.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 956db1c0d..7f1656341 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -34,7 +34,7 @@ class Application_Model_Preference $userId = self::getUserId(); if ($isUserValue && is_null($userId)) { - throw new Exception("User id can't be null for a user preference."); + throw new Exception("User id can't be null for a user preference {$key}."); } Application_Common_Database::prepareAndExecute("LOCK TABLE cc_pref");