From: Christian Weiske Date: Thu, 16 Aug 2012 18:51:32 +0000 (+0200) Subject: exit on config error X-Git-Tag: v0.1.0~22 X-Git-Url: https://git.cweiske.de/surrogator.git/commitdiff_plain/357fbe1a455c504b32005c052cea725e8d2dca16?hp=587520ecb5a7e50e0a57a57e7845a458447d5b6d;ds=sidebyside exit on config error --- diff --git a/surrogator.php b/surrogator.php index b9f724d..a78de08 100644 --- a/surrogator.php +++ b/surrogator.php @@ -4,15 +4,19 @@ require __DIR__ . '/data/surrogator.config.php'; if (!isset($rawDir)) { logErr('$rawDir not set'); + exit(1); } if (!isset($varDir)) { logErr('$varDir not set'); + exit(1); } if (!isset($sizes)) { logErr('$sizes not set'); + exit(1); } if (!isset($maxSize)) { logErr('$maxSize not set'); + exit(1); }