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