Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing `Undefined is not a function` error

  • Loading branch information...
commit 500c30788cb281eac78afd07ecb9131da58c7a5a 1 parent 5d8b4a2
@corpix authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  index.js
  2. +1 −1  package.json
View
2  index.js
@@ -24,7 +24,7 @@ ex.define = function(opts){
ex.bind = function(app, opts){
app.use(function(req, res, next){
- next(new ex._NotFound());
+ next(ex.NotFound);
});
app.error(function(err, req, res, next){
View
2  package.json
@@ -2,7 +2,7 @@
"author": "Corpix <me@corpix.ru> (http://corpix.ru)",
"name": "express-errors",
"description": "Error handler",
- "version": "0.0.6",
+ "version": "0.0.7",
"repository": {
"type": "git",
"url": "git://github.com/corpix/express-errors.git"
Please sign in to comment.
Something went wrong with that request. Please try again.