This commit is contained in:
2021-03-30 11:57:42 +08:00
parent 482f593e3b
commit fdbcc8f763
+1 -1
View File
@@ -96,7 +96,7 @@ class OnRequest extends Callback
*/
protected function sendErrorMessage($sRequest, $sResponse, $exception): bool|string
{
$this->error($exception->getMessage());
$this->addError($exception->getMessage(),'throwable');
if ($sResponse instanceof Response) {
[$sRequest, $sResponse] = [HRequest::create($sRequest), HResponse::create($sResponse)];
}