mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Return an 5XX error when an exception is raise (#15285)
This commit is contained in:
@@ -79,8 +79,8 @@ class DatabaseInconsistentException extends \Exception implements UpgradeableExc
|
||||
return $request->wantsJson() ? response()->json([
|
||||
'status' => 'error',
|
||||
'message' => $message,
|
||||
]) : response()->view('errors.db_inconsistent', [
|
||||
], 500) : response()->view('errors.db_inconsistent', [
|
||||
'results' => $this->validationResults,
|
||||
]);
|
||||
], 500);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user