aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-11 12:17:59 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-15 11:50:48 +0100
commitd48151508146f38847125f857e0fcf5499514d64 (patch)
tree850c080938f40533d1c5ecf9d342df5fafda0d7c /lib
parent1c4d43923a0904de0373b309b5b83ac6b15cfa2b (diff)
downloadnextcloud-server-d48151508146f38847125f857e0fcf5499514d64.tar.gz
nextcloud-server-d48151508146f38847125f857e0fcf5499514d64.zip
Improve validator output in case of invalid RichObject
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/RichObjectStrings/Validator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/RichObjectStrings/Validator.php b/lib/private/RichObjectStrings/Validator.php
index 4585cbfc814..d7329c945e9 100644
--- a/lib/private/RichObjectStrings/Validator.php
+++ b/lib/private/RichObjectStrings/Validator.php
@@ -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));
}
}