diff --git a/src/trigger/parser.js b/src/trigger/parser.js index b300145..b771de7 100644 --- a/src/trigger/parser.js +++ b/src/trigger/parser.js @@ -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 }); } } });