diff --git a/lib/web/imageRouter/filesystem.js b/lib/web/imageRouter/filesystem.js index f8fd7e165..ab94c5e54 100644 --- a/lib/web/imageRouter/filesystem.js +++ b/lib/web/imageRouter/filesystem.js @@ -22,7 +22,7 @@ exports.uploadImage = function (imagePath, callback) { try { fs.copyFileSync(imagePath, path.join(config.uploadsPath, fileName)) } catch (e) { - callback(new Error('Error while moving file'), null) + callback(new Error(`Error while moving file: ${e.message}`), null) return } callback(null, (new URL(fileName, config.serverURL + '/uploads/')).href)