mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 09:35:57 +02:00
feat: improve error/exception ui (#3690)
This commit is contained in:
parent
cb6c931b1f
commit
b3b0736761
9 changed files with 54 additions and 24 deletions
|
@ -22,7 +22,7 @@ final class RssBridge
|
|||
set_exception_handler(function (\Throwable $e) {
|
||||
self::$logger->error('Uncaught Exception', ['e' => $e]);
|
||||
http_response_code(500);
|
||||
print render(__DIR__ . '/../templates/error.html.php', ['e' => $e]);
|
||||
print render(__DIR__ . '/../templates/exception.html.php', ['e' => $e]);
|
||||
exit(1);
|
||||
});
|
||||
|
||||
|
@ -117,7 +117,7 @@ final class RssBridge
|
|||
} catch (\Throwable $e) {
|
||||
self::$logger->error('Exception in RssBridge::main()', ['e' => $e]);
|
||||
http_response_code(500);
|
||||
print render(__DIR__ . '/../templates/error.html.php', ['e' => $e]);
|
||||
print render(__DIR__ . '/../templates/exception.html.php', ['e' => $e]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue