Skip to content

Commit

Permalink
readme: rename non existing variable in Usage
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Nov 24, 2016
1 parent 6d96a97 commit ebdd10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -68,7 +68,7 @@ app.post('/:urlparam', function(req, res) {
// when using generators e.g. with co-express
req.getValidationResult().then(function(result) {
if (!result.isEmpty()) {
res.send('There have been validation errors: ' + util.inspect(errors.array()), 400);
res.send('There have been validation errors: ' + util.inspect(result.array()), 400);
return;
}
res.json({
Expand Down

0 comments on commit ebdd10d

Please sign in to comment.