1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 08:37:30 +02:00

feat: improve http 429 handling (#3541)

This commit is contained in:
Dag
2023-07-16 07:18:38 +02:00
committed by GitHub
parent 773eea196f
commit 310160fd92
3 changed files with 8 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ final class RssBridge
try {
$this->run($request);
} catch (\Throwable $e) {
Logger::error('Exception in main', ['e' => $e]);
Logger::error(sprintf('Exception in RssBridge::main(): %s', create_sane_exception_message($e)), ['e' => $e]);
http_response_code(500);
print render(__DIR__ . '/../templates/error.html.php', ['e' => $e]);
}