Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jarofgreen committed Dec 13, 2011
1 parent f3d3ca6 commit 1a8e702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CreepyCoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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) {
Expand Down

0 comments on commit 1a8e702

Please sign in to comment.