]> git.donarmstrong.com Git - infobot.git/blobdiff - src/DynaConfig.pl
- patch from Morten Brix Pedersen:
[infobot.git] / src / DynaConfig.pl
index e24b0d41122a19b80b31b53e2298f989151e9fe6..c7b6f1dc0fc1c1963b82c26430f3308b3d3e2655 100644 (file)
@@ -30,7 +30,7 @@ sub readUserFile {
     }
 
     if (!open IN, $f) {
-       &ERROR("cannot read userfile.");
+       &ERROR("Cannot read userfile ($f): $!");
        &closeLog();
        exit 1;
     }
@@ -123,7 +123,7 @@ sub writeUserFile {
     }
 
     if (!open OUT,">$bot_state_dir/blootbot.users") {
-       &ERROR("cannot write to userfile.");
+       &ERROR("Cannot write userfile ($bot_state_dir/blootbot.users): $!");
        return;
     }
 
@@ -237,7 +237,7 @@ sub readChanFile {
     }
 
     if (!open IN, $f) {
-       &ERROR("cannot erad chanfile.");
+       &ERROR("Cannot read chanfile ($f): $!");
        return;
     }
 
@@ -298,7 +298,7 @@ sub writeChanFile {
     }
 
     if (!open OUT,">$bot_state_dir/blootbot.chan") {
-       &ERROR("cannot write chanfile.");
+       &ERROR("Cannot write chanfile ($bot_state_dir/blootbot.chan): $!");
        return;
     }