Skip to content
Snippets Groups Projects
Verified Commit c449edc5 authored by Thomas Flori's avatar Thomas Flori
Browse files

use filtered value for exception message

(cherry picked from commit 34bf7576)
parent 3c1ec4b7
No related branches found
No related tags found
No related merge requests found
......@@ -218,11 +218,7 @@ class Gate
if (count($errors) > 0) {
throw new InvalidValue(sprintf('Invalid %s: %s', $k, $errors[0]->message), ...$errors);
}
throw new InvalidValue(sprintf(
'The value %s is not valid for %s',
json_encode($this->rawData[$k] ?? null),
$k
));
throw new InvalidValue(sprintf('The value %s is not valid for %s', json_encode($filtered), $k));
} else {
$filtered = null;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment