}
if (!open IN, $f) {
- &ERROR("cannot read userfile.");
+ &ERROR("Cannot read userfile ($f): $!");
&closeLog();
exit 1;
}
}
if (!open OUT,">$bot_state_dir/blootbot.users") {
- &ERROR("cannot write to userfile.");
+ &ERROR("Cannot write userfile ($bot_state_dir/blootbot.users): $!");
return;
}
}
if (!open IN, $f) {
- &ERROR("cannot erad chanfile.");
+ &ERROR("Cannot read chanfile ($f): $!");
return;
}
}
if (!open OUT,">$bot_state_dir/blootbot.chan") {
- &ERROR("cannot write chanfile.");
+ &ERROR("Cannot write chanfile ($bot_state_dir/blootbot.chan): $!");
return;
}