kopia lustrzana https://github.com/rastapasta/mapscii
Merge pull request #57 from rastapasta/create-folder-error
Throw an error if creating a folder fails.pull/68/head^2
commit
d98aced647
|
@ -168,7 +168,8 @@ class TileSource {
|
|||
fs.mkdirSync(path);
|
||||
return true;
|
||||
} catch (error) {
|
||||
return error.code === 'EEXIST';
|
||||
if (error.code === 'EEXIST') return true;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue