We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca9d839 commit f54898cCopy full SHA for f54898c
1 file changed
src/Hander/Whoops.php
@@ -5,9 +5,9 @@
5
namespace think\Whoops\Hander;
6
7
use think\App;
8
-use think\Response;
9
use think\exception\Handle;
10
use think\exception\HttpResponseException;
+use think\Response;
11
use think\Whoops\Runner;
12
use Throwable;
13
use Whoops\Handler\JsonResponseHandler;
@@ -27,7 +27,6 @@ public function render($request, Throwable $e): Response
27
{
28
// Whoops 接管请求异常
29
if (config('whoops.enable') && $this->app->isDebug()) {
30
-
31
if ($e instanceof HttpResponseException) {
32
return $e->getResponse();
33
}
0 commit comments