From 7043eafe99c13677d8acb2b1ab00b7d0928d7656 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 26 Aug 2020 15:13:00 -0400 Subject: [PATCH] Error throw fix --- libs/taskNew.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/taskNew.js b/libs/taskNew.js index 19badaa..15c39d2 100644 --- a/libs/taskNew.js +++ b/libs/taskNew.js @@ -259,7 +259,7 @@ module.exports = { if (req.files && req.files.length > 0) { fs.stat(destPath, (err, stat) => { if (err && err.code === 'ENOENT') cb(); - else cb(new Error(`Directory exists (should not have happened: ${err.code})`)); + else cb(new Error(`Directory exists (should not have happened)`)); }); } else { cb();