Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Commit

Permalink
Added error handler for 'Error' class (eg. ETIMEDOUT from request mod…
Browse files Browse the repository at this point in the history
…ule)
  • Loading branch information
Zenedith committed Mar 5, 2016
1 parent 97a0caf commit c75d87a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ var startServer = function startServer(callback) {
ServiceUnavailable: {
className: 'ServiceUnavailableError'
},
'': {
className: 'ServiceUnavailableError'
},
UnauthorizedUser: {
className: 'ForbiddenError'
},
Expand Down

0 comments on commit c75d87a

Please sign in to comment.