2
0
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:
Daniel James
2016-09-29 02:08:52 +01:00
parent f4472fc751
commit b8120cc53c
15 changed files with 57 additions and 57 deletions

View File

@@ -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');