Skip to content

Commit 5fa3c34

Browse files
Leonisthilanga
authored andcommitted
show status_code for ValidationException (dingo#1519)
1 parent 48d0b96 commit 5fa3c34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Exception/Handler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ protected function prepareReplacements(Exception $exception)
221221

222222
if ($exception instanceof ValidationException) {
223223
$replacements[':errors'] = $exception->errors();
224+
$replacements[':status_code'] = $exception->status;
224225
}
225226

226227
if ($code = $exception->getCode()) {

0 commit comments

Comments
 (0)