From 357fbe1a455c504b32005c052cea725e8d2dca16 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 16 Aug 2012 20:51:32 +0200 Subject: [PATCH] exit on config error --- surrogator.php | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.30.2