Merge branch 'master' of github.com:mapbox/node-mbtiles into tilelive-refactoring
Conflicts: lib/mbtiles.js
This commit is contained in:
@@ -275,8 +275,8 @@ MBTiles.prototype.grid = function(x, y, z, callback) {
|
||||
);
|
||||
},
|
||||
function(err, row, rows) {
|
||||
if ((!row || !row.grid) || (err && err.errno == 1)) return callback('Grid does not exist');
|
||||
if (err) return callback(err);
|
||||
if (!row || !row.grid) return callback(new Error('Grid does not exist'));
|
||||
|
||||
try {
|
||||
var grid = zlib.inflate(
|
||||
|
||||
Reference in New Issue
Block a user