]> git.donarmstrong.com Git - infobot.git/blobdiff - src/core.pl
loadConfig to spurt out correct message when infobot.config does not exist on fresh...
[infobot.git] / src / core.pl
index b53e98144e7c6779d58d5c081361d0103f075639..a93ce4eae9c9e57d7eb3caeda9176f6c3f1bf15d 100644 (file)
@@ -216,8 +216,9 @@ sub loadConfig {
 
     if (!open(FILE, $file)) {
        &ERROR("FAILED loadConfig ($file): $!");
-       &status("Please make sure the configuration file exists.");
-       exit 1;
+       &status("Please copy files/sample.config to files/infobot.config");
+       &status("  and edit files/infobot.config, modify to tastes.");
+       exit 0;
     }
 
     my $count = 0;