Fixed error when creating directory fails
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
8fc358474d
commit
c49310ef71
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user