Don't falsely report failed write if it didn't fail
This commit is contained in:
parent
7005034e82
commit
e6990e0fc7
@ -39,7 +39,9 @@ module.exports.write = function(user, network, chan, msg) {
|
||||
path + "/" + chan.replace(/%/g, "%%").replace(/\//g, "%") + ".log",
|
||||
line + "\n",
|
||||
function(e) {
|
||||
log.error("Failed to write user log", e);
|
||||
if (e) {
|
||||
log.error("Failed to write user log", e);
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user