kopia lustrzana https://github.com/rastapasta/mapscii
Fix mistake where _createFolder wouldn't throw an error
rodzic
ca789ba9dd
commit
66a605254c
|
@ -168,7 +168,7 @@ class TileSource {
|
||||||
fs.mkdirSync(path);
|
fs.mkdirSync(path);
|
||||||
return true;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return error.code === 'EEXIST';
|
if (error.code === 'EEXIST') return true;
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue