mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
chore: oops two fix
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
ffd6b466fe
commit
285c18460a
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ function handleException(Exception|Error $e): void {
|
|||
// we shall not log on RemoteException
|
||||
\OCP\Server::get(ITemplateManager::class)->printErrorPage($e->getMessage(), '', $e->getCode());
|
||||
} else {
|
||||
if ($ex instanceof ServiceUnavailableException && $e->getCode === 0) {
|
||||
if ($e instanceof ServiceUnavailableException && $e->getCode() === 0) {
|
||||
$status = 503;
|
||||
}
|
||||
if ($e->getCode() > 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue