Skip to content

Commit ad20c68

Browse files
committed
verbose error
1 parent 45daa74 commit ad20c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public function process($data, ProcessingOptions $options, $path = '#', $result
298298
}
299299
if ($this->pattern !== null) {
300300
if (0 === preg_match(Helper::toPregPattern($this->pattern), $data)) {
301-
$this->fail(new StringException('Does not match to '
301+
$this->fail(new StringException(json_encode($data) . ' does not match to '
302302
. $this->pattern, StringException::PATTERN_MISMATCH), $path);
303303
}
304304
}

0 commit comments

Comments
 (0)