mirror of https://github.com/nextcloud/server
Improve validator output in case of invalid RichObject
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
1c4d43923a
commit
d481515081
|
@ -95,7 +95,7 @@ class Validator implements IValidator {
|
|||
|
||||
$missingKeys = array_diff($requiredParameters, array_keys($parameter));
|
||||
if (!empty($missingKeys)) {
|
||||
throw new InvalidObjectExeption('Object is invalid');
|
||||
throw new InvalidObjectExeption('Object is invalid, missing keys:'.json_encode($missingKeys));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue