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
commit d98aced647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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