mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 19:48:23 +02:00
Don't try to log error that doesn't exist
This commit is contained in:
parent
57dc7c91ef
commit
76aa54f22c
1 changed files with 3 additions and 1 deletions
|
@ -1190,7 +1190,9 @@ function FTNMessageScanTossModule() {
|
||||||
rejects.includes(bundleFile.path) ? 'reject' : 'good',
|
rejects.includes(bundleFile.path) ? 'reject' : 'good',
|
||||||
() => {
|
() => {
|
||||||
fs.unlink(bundleFile.path, err => {
|
fs.unlink(bundleFile.path, err => {
|
||||||
Log.error( { path : bundleFile.path, error : err.message }, 'Failed unlinking bundle');
|
if(err) {
|
||||||
|
Log.error( { path : bundleFile.path, error : err.message }, 'Failed unlinking bundle');
|
||||||
|
}
|
||||||
return nextFile(null);
|
return nextFile(null);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue