mirror of
https://github.com/nextcloud/server.git
synced 2026-06-04 14:24:59 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue