chore: oops two fix

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2025-11-03 13:06:41 -05:00 committed by Ferdinand Thiessen
parent ffd6b466fe
commit 285c18460a

View file

@ -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) {