Merge pull request #2 from disarticulate/patch-2
verbose output empty tile warning
This commit is contained in:
commit
e6747ebb78
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ module.exports = function(options, repo, params, id, publicUrl, dataResolver) {
|
||||||
format = parts[5].split('.')[1];
|
format = parts[5].split('.')[1];
|
||||||
source.getTile(z, x, y, function(err, data, headers) {
|
source.getTile(z, x, y, function(err, data, headers) {
|
||||||
if (err) {
|
if (err) {
|
||||||
//console.log('MBTiles error, serving empty', err);
|
if (options.verbose) console.log('MBTiles error, serving empty', err);
|
||||||
createEmptyResponse(sourceInfo.format, sourceInfo.color, callback);
|
createEmptyResponse(sourceInfo.format, sourceInfo.color, callback);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue