|
|
@ -76,7 +76,7 @@ class Handler extends ExceptionHandler |
|
|
]); |
|
|
]); |
|
|
} |
|
|
} |
|
|
//TypeError && ParseError && Exception
|
|
|
//TypeError && ParseError && Exception
|
|
|
if ($e instanceof \TypeError || $e instanceof \ParseError || $e instanceof \Exception) { |
|
|
|
|
|
|
|
|
/*if ($e instanceof \TypeError || $e instanceof \ParseError || $e instanceof \Exception) { |
|
|
return response()->json([ |
|
|
return response()->json([ |
|
|
'code' => -1, |
|
|
'code' => -1, |
|
|
'msg' => $e->getMessage(), |
|
|
'msg' => $e->getMessage(), |
|
|
@ -96,7 +96,7 @@ class Handler extends ExceptionHandler |
|
|
'file' => $e->getFile(), |
|
|
'file' => $e->getFile(), |
|
|
'line' => $e->getLine(), |
|
|
'line' => $e->getLine(), |
|
|
]); |
|
|
]); |
|
|
} |
|
|
|
|
|
|
|
|
}*/ |
|
|
return parent::render($request, $e); |
|
|
return parent::render($request, $e); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |