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']))