fix iossue in search
Deploy / deploy (push) Successful in 9s

This commit is contained in:
2026-05-06 12:37:32 +02:00
parent 36abf1bdd4
commit c7883828ff
2 changed files with 104 additions and 22 deletions
+4 -2
View File
@@ -85,8 +85,10 @@ class Router
$this->respond(200, $result);
} catch (\RuntimeException $e) {
$this->respond($e->getCode() ?: 500, ['error' => $e->getMessage()]);
} catch (\Throwable $e) {
$code = is_int($e->getCode()) && $e->getCode() >= 100 && $e->getCode() < 600
? $e->getCode() : 500;
$this->respond($code, ['error' => $e->getMessage()]);
}
}