mirror of
https://github.com/rastapasta/mapscii.git
synced 2025-08-16 08:47:55 +02:00
Fix mistake where _createFolder wouldn't throw an error
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user