CC-5555 : Implement simple caching for preferences

better to include the key in the error message
This commit is contained in:
Naomi 2013-11-11 16:36:21 -05:00
parent f69dd123ca
commit f615e176e2
1 changed files with 1 additions and 1 deletions

View File

@ -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");