Don't try to log error that doesn't exist

This commit is contained in:
Bryan Ashby 2017-03-08 23:01:25 -07:00
parent 57dc7c91ef
commit 76aa54f22c
1 changed files with 3 additions and 1 deletions

View File

@ -1190,7 +1190,9 @@ function FTNMessageScanTossModule() {
rejects.includes(bundleFile.path) ? 'reject' : 'good',
() => {
fs.unlink(bundleFile.path, err => {
if(err) {
Log.error( { path : bundleFile.path, error : err.message }, 'Failed unlinking bundle');
}
return nextFile(null);
});
}