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