Merge pull request #482 from candux/david/fixStyleServer

fix crash in serveAllFonts
This commit is contained in:
Petr Sloup 2020-10-16 09:24:44 +02:00 committed by GitHub
commit 04b49d8a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@ function start(opts) {
return dataItemId;
} else {
if (fromData || !allowMoreData) {
console.log(`ERROR: style "${file.name}" using unknown mbtiles "${mbtiles}"! Skipping...`);
console.log(`ERROR: style "${item.style}" using unknown mbtiles "${mbtiles}"! Skipping...`);
return undefined;
} else {
let id = mbtiles.substr(0, mbtiles.lastIndexOf('.')) || mbtiles;