From 938b13f21fba7b6bb29b578f02b0709407038854 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 14 Oct 2019 11:13:52 -0400 Subject: [PATCH] Bug fix --- libs/taskNew.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/taskNew.js b/libs/taskNew.js index 9738bbc..c614127 100644 --- a/libs/taskNew.js +++ b/libs/taskNew.js @@ -188,7 +188,7 @@ module.exports = { cb => { fs.stat(srcPath, (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)`)); }); }, cb => fs.mkdir(srcPath, undefined, cb),