Skip to content

Commit

Permalink
plane mode: allow app to start even without connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Apr 22, 2015
1 parent 331d046 commit 9cc7b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ app.delete('/history/:type(style|source)', function(req, res, next) {
app.use(function(err, req, res, next) {
// Error on loading a tile, send 404.
if (err && req.params && 'z' in req.params) return res.send(err.toString(), 404);
if (err && err.code === 'EOAUTH') return res.redirect('/authorize');
if (err && (err.code === 'EOAUTH' || err.code == 'ENOTFOUND')) return res.redirect('/authorize');
if (err && err.status === 401) return res.redirect('/unauthorize');

// Log errors if not testing.
Expand Down

0 comments on commit 9cc7b94

Please sign in to comment.