mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add exception verbosity
This commit is contained in:
@@ -1097,7 +1097,9 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
|||||||
foreach ($mandatoryParams as $param)
|
foreach ($mandatoryParams as $param)
|
||||||
{
|
{
|
||||||
if (!array_key_exists($param, $params))
|
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']))
|
if (!is_array($params['value']))
|
||||||
|
Reference in New Issue
Block a user