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:
Tony Murray
2021-08-23 19:06:56 -05:00
committed by GitHub
parent 62d440a0dc
commit 07415ced77

View File

@@ -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);
}
}