From: Mikael Nordfeldth Date: Thu, 31 Dec 2015 11:41:02 +0000 (+0100) Subject: Proper error message in exception X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=660678191676b9997883b6c72d62946d0334cd7e;p=quix0rs-gnu-social.git Proper error message in exception --- diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php index 5f8445d81e..fb18e594f9 100644 --- a/classes/Managed_DataObject.php +++ b/classes/Managed_DataObject.php @@ -371,7 +371,7 @@ abstract class Managed_DataObject extends Memcached_DataObject if (!array_key_exists($col, $vals)) { continue; } elseif (is_null($vals[$col])) { - throw new ServerException("NULL values not allowed in getByPK for column '{$col}'"); + throw new ServerException("NULL values not allowed in getByKeys for column '{$col}'"); } $object->$col = $vals[$col]; }