mirror of
https://github.com/rastapasta/mapscii.git
synced 2025-06-19 17:27:41 +02:00
Fix mistake where _createFolder wouldn't throw an error
This commit is contained in:
parent
ca789ba9dd
commit
66a605254c
@ -168,7 +168,7 @@ class TileSource {
|
||||
fs.mkdirSync(path);
|
||||
return true;
|
||||
} catch (error) {
|
||||
return error.code === 'EEXIST';
|
||||
if (error.code === 'EEXIST') return true;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user