mirror of
https://github.com/boostorg/website.git
synced 2026-01-19 04:42:17 +00:00
Adjust a lot of the error handling.
Use exceptions for most internal errors. Return error codes for most errors.
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
require_once(__DIR__.'/../common/code/boost_config.php');
|
||||
|
||||
if (!defined('BOOST_TASKS_DIR')) {
|
||||
die("Tasks directory not set.");
|
||||
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
|
||||
echo "Tasks directory not set.";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
require_once(BOOST_TASKS_DIR.'/webhook/webhook.php');
|
||||
|
||||
Reference in New Issue
Block a user