Skip to content

Commit a78a696

Browse files
authored
Merge pull request #2 from Micro-PHP/v1.0-rc2
v1.0-rc2
2 parents 7ca5e6c + 68761de commit a78a696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Business/Executor/RouteExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function generateResponse(Request $request, mixed $responseData, bool
8686
}
8787

8888
if (!$transformed) {
89-
throw new HttpInternalServerException();
89+
throw new HttpInternalServerException('Internal Server Error.', $responseData instanceof \Throwable ? $responseData : null);
9090
}
9191

9292
return $response;

0 commit comments

Comments
 (0)