]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Misc.pl
- patch from Morten Brix Pedersen:
[infobot.git] / src / Misc.pl
index 9379d7b10dae4e2fda048cfd3e6d580d213a63fc..d621ea6c9cf057f9ab93df1fdf4b611a16500a2a 100644 (file)
@@ -16,7 +16,7 @@ sub help {
     $msgType = "private" if ($msgType eq "public");
 
     if (!open(FILE, $file)) {
-       &ERROR("FAILED loadHelp ($file): $!");
+       &ERROR("Failed reading help file ($file): $!");
        return;
     }
 
@@ -317,7 +317,7 @@ sub getRandomLineFromFile {
            return $line;
        }
     } else {
-       &WARN("gRLfF: could not open file '$file'.");
+       &WARN("gRLfF: Could not open file ($file): $!");
        return;
     }
 }
@@ -343,7 +343,7 @@ sub getLineFromFile {
        chop $line;
        return $line;
     } else {
-       &ERROR("getLineFromFile: could not open file '$file'.");
+       &ERROR("gLFF: Could not open file ($file): $!");
        return 0;
     }
 }