mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
API: torrents upload/list
This commit is contained in:
@@ -101,6 +101,9 @@ class Handler extends ExceptionHandler
|
||||
if (config('app.debug')) {
|
||||
$data['trace'] = $trace;
|
||||
}
|
||||
if ($e instanceof \Error || $e instanceof \ErrorException) {
|
||||
do_log(sprintf(get_class($e) . ": %s, trace: %s", $msg, $e->getTraceAsString()), "error");
|
||||
}
|
||||
return new JsonResponse(
|
||||
fail($msg, $data),
|
||||
$httpStatusCode,
|
||||
|
||||
Reference in New Issue
Block a user