Skip to content

Commit 2172b51

Browse files
committed
update
1 parent cd90e16 commit 2172b51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Hander/Whoops.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Whoops extends Handle
1515
public function render($request, Throwable $e): Response
1616
{
1717
// Whoops 接管请求异常
18-
if (config('whoops.enable')) {
18+
if (config('whoops.enable') && $this->app->isDebug()) {
1919
if ($e instanceof HttpResponseException) {
2020
return $e->getResponse();
2121
}

0 commit comments

Comments
 (0)