Skip to content

Commit a725338

Browse files
authored
Update ResponseTrait.php
1 parent 867d01b commit a725338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/ResponseTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function renderableHandle()
146146
'file_line' => sprintf('%s:%s', $e->getFile(), $e->getLine()),
147147
]);
148148

149-
return $this->fail($e->getMessage(), Response::HTTP_INTERNAL_SERVER_ERROR);
149+
return $this->fail($e->getMessage(), $e->getCode() ?: Response::HTTP_INTERNAL_SERVER_ERROR);
150150
};
151151
}
152152
}

0 commit comments

Comments
 (0)