X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FDynaConfig.pl;h=c7b6f1dc0fc1c1963b82c26430f3308b3d3e2655;hb=0fbfef3c124ae0abe85dbf5eb4625520f0772487;hp=e24b0d41122a19b80b31b53e2298f989151e9fe6;hpb=130fc9d79663d571b32c8a625e3487e7b42c10da;p=infobot.git diff --git a/src/DynaConfig.pl b/src/DynaConfig.pl index e24b0d4..c7b6f1d 100644 --- a/src/DynaConfig.pl +++ b/src/DynaConfig.pl @@ -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; }