another bugfix
This commit is contained in:
parent
7e366f1c21
commit
2788ad9e38
|
@ -50,7 +50,7 @@ module.exports = (lib) => {
|
|||
}
|
||||
else {
|
||||
fs.stat('./b/' + cb.file, (err, stat) => {
|
||||
if(err === null)
|
||||
if(err === null || err.code == 'ENOENT')
|
||||
fs.unlinkSync('./b/' + cb.file);
|
||||
if(cb.msg !== '')
|
||||
e.reply(cb.msg);
|
||||
|
|
Loading…
Reference in New Issue
Block a user