Commit 3d906231 authored by nodivbyzero's avatar nodivbyzero Committed by Lukas Fleischer
Browse files

Terminate execution if config file is missing



Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent bcd795c3
......@@ -8,7 +8,11 @@ function config_load() {
if (!$path) {
$path = "/etc/aurweb/config";
}
$AUR_CONFIG = parse_ini_file($path, true, INI_SCANNER_RAW);
if (file_exists($path)) {
$AUR_CONFIG = parse_ini_file($path, true, INI_SCANNER_RAW);
} else {
die("aurweb config file not found");
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment