diff --git a/src/services/sharedFolder.js b/src/services/sharedFolder.js index 90b4ac214a..71ea003491 100644 --- a/src/services/sharedFolder.js +++ b/src/services/sharedFolder.js @@ -112,7 +112,10 @@ module.exports = { } if (!isRealPath(path, cb)) return fs.remove(path, (error) => { - if (error) console.log(error) + if (error) { + console.log(error) + return cb('Failed to remove file/directory: ' + error) + } cb(error, true) }) },