mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
Fix DB Inconsistent friendly error message (#13163)
Exception was causing an exception due to a type error, fix that so the nice message works.
This commit is contained in:
parent
62d440a0dc
commit
07415ced77
@ -57,7 +57,7 @@ class DatabaseInconsistentException extends \Exception implements UpgradeableExc
|
||||
});
|
||||
|
||||
if ($results) {
|
||||
return new static($results, $exception->getMessage(), $exception->getCode(), $exception);
|
||||
return new static($results, $exception->getMessage(), 0, $exception);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user