Merge pull request #57 from rastapasta/create-folder-error

Throw an error if creating a folder fails.
This commit is contained in:
Christian Paul
2019-03-24 18:05:01 -07:00
committed by GitHub

View File

@ -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;
}
}
}