Return proper "not found" error when utfgrid tables are missing.
This commit is contained in:
+1
-1
@@ -240,8 +240,8 @@ MBTiles.prototype.grid = function(x, y, z, callback) {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
function(err, row, rows) {
|
function(err, row, rows) {
|
||||||
|
if ((!row || !row.grid) || (err && err.errno == 1)) return callback('Grid does not exist');
|
||||||
if (err) return callback(err);
|
if (err) return callback(err);
|
||||||
if (!row || !row.grid) return callback('Grid does not exist');
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var grid = zlib.inflate(
|
var grid = zlib.inflate(
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
Reference in New Issue
Block a user