From d04ba1e76c4e7d088a6da2559c84d08f457bce73 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Wed, 4 Jan 2012 18:05:40 +0100 Subject: [PATCH] Add exception verbosity --- lib/classes/record/adapter.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/classes/record/adapter.class.php b/lib/classes/record/adapter.class.php index 9a8673306d..3a3402567c 100644 --- a/lib/classes/record/adapter.class.php +++ b/lib/classes/record/adapter.class.php @@ -1097,7 +1097,9 @@ class record_adapter implements record_Interface, cache_cacheableInterface foreach ($mandatoryParams as $param) { if (!array_key_exists($param, $params)) - throw new Exception_InvalidArgument(); + { + throw new Exception_InvalidArgument(sprintf('Invalid metadata, missing key %s', $param)); + } } if (!is_array($params['value']))