mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-15 04:59:40 +01:00
parent
ee80f4918e
commit
e7aebb223d
@ -25,11 +25,14 @@ try {
|
||||
$showInactive = filter_input(INPUT_GET, 'show_inactive', FILTER_VALIDATE_BOOLEAN);
|
||||
echo BridgeList::create($showInactive);
|
||||
}
|
||||
} catch(\Exception $e) {
|
||||
} catch(\Throwable $e) {
|
||||
error_log($e);
|
||||
$code = $e->getCode();
|
||||
if ($code !== -1) {
|
||||
header('Content-Type: text/plain', true, $code);
|
||||
}
|
||||
die($e->getMessage());
|
||||
|
||||
$message = sprintf("Uncaught Exception %s: '%s'\n", get_class($e), $e->getMessage());
|
||||
|
||||
print $message;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user