Update parser.js

This commit is contained in:
Flummi 2016-11-02 00:36:35 +00:00
parent 36fa837eb7
commit 53a8ad26bc

View File

@ -49,7 +49,7 @@ module.exports = (lib) => {
});
}
else
if(cb.msg != '')
if(cb.msg !== '')
e.reply(cb.msg);
});
}
@ -101,9 +101,9 @@ module.exports = (lib) => {
.pipe(dat);
}
catch(ex) {
dat.close();
fs.unlinkSync('./b/' + tmpdest);
cb({ success: false, msg: ex });
//dat.close();
//fs.unlinkSync('./b/' + tmpdest);
cb({ success: false, msg: ex.message });
}
}
});