Return proper "not found" error when utfgrid tables are missing.
This commit is contained in:
@@ -240,8 +240,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('Grid does not exist');
|
||||
|
||||
try {
|
||||
var grid = zlib.inflate(
|
||||
|
||||
Reference in New Issue
Block a user