This commit is contained in:
Andras Bacsai
2023-05-15 14:54:03 +02:00
parent c47b0ddcc1
commit bdd4a24567
8 changed files with 38 additions and 37 deletions

View File

@@ -33,7 +33,7 @@ if (!function_exists('generalErrorHandler')) {
}
} catch (\Throwable $error) {
if ($that) {
$that->emit('error', $error);
$that->emit('error', $error->getMessage());
} elseif ($isJson) {
return response()->json([
'code' => $error->getCode(),