diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2015-04-08 18:17:08 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2015-04-08 18:17:08 -0400 |
commit | 9363d94c36d082a3c410534b7ce34c77cb63c86d (patch) | |
tree | baddd764657823956b0066aae9c73ee626b1462a | |
parent | 40d47bc2c6a1815e590c8203a5539b46d811e2a5 (diff) | |
download | qtlocation-mapboxgl-9363d94c36d082a3c410534b7ce34c77cb63c86d.tar.gz |
respond with error message for non-200 responses in example FileSource
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } }); }; |