BF validation
This commit is contained in:
parent
f40d183271
commit
cda4d34086
|
|
@ -170,11 +170,18 @@ class Controller
|
||||||
'line' => $e->getFile() . ':' . $e->getLine(),
|
'line' => $e->getFile() . ':' . $e->getLine(),
|
||||||
'stack' => $e->getTraceAsString(),
|
'stack' => $e->getTraceAsString(),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$isValidation = $e instanceof \Illuminate\Validation\ValidationException;
|
||||||
|
|
||||||
|
if ($isValidation) {
|
||||||
|
Log::info('WS validation failed: ' . $e->getMessage(), $reload);
|
||||||
|
} else {
|
||||||
Log::error($e->getMessage(), $reload);
|
Log::error($e->getMessage(), $reload);
|
||||||
|
|
||||||
if (app()->bound('sentry')) {
|
if (app()->bound('sentry')) {
|
||||||
app('sentry')->captureException($e);
|
app('sentry')->captureException($e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return self::send_error($connection, $message, $e->getMessage(), true);
|
return self::send_error($connection, $message, $e->getMessage(), true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue