From 1a8e70294d557317e778531f61308552b5a0db36 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 13 Dec 2011 22:48:09 +0000 Subject: [PATCH] Better error message --- src/CreepyCoder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CreepyCoder.php b/src/CreepyCoder.php index 8fbec3b..9936897 100644 --- a/src/CreepyCoder.php +++ b/src/CreepyCoder.php @@ -25,7 +25,7 @@ $opts = getopt('c:'); -if (!isset($opts['c'])) die('You must set a configc file with the -c option!'); +if (!isset($opts['c'])) die("You must set a configc file with the -c option!\n"); $configXML = file_get_contents($opts['c']); $xmlDoc = new DOMDocument(); @@ -34,7 +34,7 @@ $dataManager = new DataManager(); #################################### set input -foreach(array('ReadSVN','ReadGitHub') as $mod) { +foreach(array('ReadSVN','ReadGitHub','ReadGit') as $mod) { $configList = $xmlDoc->getElementsByTagName($mod); $configListLength = $configList->length; if ($configListLength > 0) {