summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2015-04-08 18:17:08 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2015-04-08 18:17:08 -0400
commit9363d94c36d082a3c410534b7ce34c77cb63c86d (patch)
treebaddd764657823956b0066aae9c73ee626b1462a
parent40d47bc2c6a1815e590c8203a5539b46d811e2a5 (diff)
downloadqtlocation-mapboxgl-9363d94c36d082a3c410534b7ce34c77cb63c86d.tar.gz
respond with error message for non-200 responses in example FileSource
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 1cf8709190..f554e4d1f3 100644
--- a/README.md
+++ b/README.md
@@ -142,7 +142,7 @@ fileSource.request = function(req) {
response.data = body;
req.respond(null, response);
} else {
- console.warn(new Date(res.headers.expires));
+ req.respond(new Error(JSON.parse(body).message));
}
});
};