|
@@ -59,7 +59,7 @@ class Handler extends ExceptionHandler
|
|
|
if(!$startTime){
|
|
|
$startTime = $endTime;
|
|
|
}
|
|
|
- $responseData = json_encode([$exception->getMessage()]);
|
|
|
+ $responseData = json_encode([$exception->getMessage(),$exception->getTraceAsString()]);
|
|
|
|
|
|
//获取自定义的日志
|
|
|
$requestLog = "";
|
|
@@ -106,8 +106,10 @@ class Handler extends ExceptionHandler
|
|
|
//异常处理
|
|
|
if($exception instanceof ValidateException){
|
|
|
return $this->error($exception->getMessage());
|
|
|
+ }else{
|
|
|
+ return $this->error($exception->getMessage());
|
|
|
}
|
|
|
- return parent::render($request, $exception);
|
|
|
+// return parent::render($request, $exception);
|
|
|
}
|
|
|
|
|
|
/**
|