mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
parent
ee80f4918e
commit
e7aebb223d
@ -25,11 +25,14 @@ try {
|
|||||||
$showInactive = filter_input(INPUT_GET, 'show_inactive', FILTER_VALIDATE_BOOLEAN);
|
$showInactive = filter_input(INPUT_GET, 'show_inactive', FILTER_VALIDATE_BOOLEAN);
|
||||||
echo BridgeList::create($showInactive);
|
echo BridgeList::create($showInactive);
|
||||||
}
|
}
|
||||||
} catch(\Exception $e) {
|
} catch(\Throwable $e) {
|
||||||
error_log($e);
|
error_log($e);
|
||||||
$code = $e->getCode();
|
$code = $e->getCode();
|
||||||
if ($code !== -1) {
|
if ($code !== -1) {
|
||||||
header('Content-Type: text/plain', true, $code);
|
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…
Reference in New Issue
Block a user