Fixed error when creating directory fails

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-08-30 09:09:33 -07:00
parent 8fc358474d
commit c49310ef71

View File

@ -190,7 +190,7 @@ function mkdirPromise(path) {
} }
fs.mkdir(path, function(err) { fs.mkdir(path, function(err) {
if (err) { if (err && err.code != 'EEXIST') {
return reject("Unable to create " + path + "\n" + err); return reject("Unable to create " + path + "\n" + err);
} }
return resolve(); return resolve();