Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: documentation update for restifyError event example (#1398)
  • Loading branch information
William Blankenship committed Jul 4, 2017
1 parent 76ee548 commit 94fe715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/server.md
Expand Up @@ -244,12 +244,12 @@ server.get('/', function(req, res, next) {

server.on('InternalServer', function(req, res, err, callback) {
// this will get fired first, as it's the most relevant listener
return next();
return callback();
});

server.on('restifyError', function(req, res, err, callback) {
// this is fired second.
return next();
return callback();
});
```

Expand Down

0 comments on commit 94fe715

Please sign in to comment.