Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prepared to express 3

  • Loading branch information...
commit 0912dafb5b0c0b8209235af74eb38f9ab92ef670 1 parent ef1cec2
@corpix authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  index.js
  2. +2 −2 package.json
View
2  index.js
@@ -35,7 +35,7 @@ ex.bind = function(app, opts){
});
}
- app.error(function(err, req, res, next){
+ app.use(function(err, req, res, next){
if(!err.name || err.name == 'Error' || !ex.hasOwnProperty(err.name)){
console.error(new Date().toLocaleString(), '>>', err);
console.log(err.stack);
View
4 package.json
@@ -2,7 +2,7 @@
"author": "Corpix <me@corpix.ru> (http://corpix.ru)",
"name": "express-errors",
"description": "Error handler",
- "version": "0.1.2",
+ "version": "0.2.0",
"repository": {
"type": "git",
"url": "git://github.com/corpix/express-errors.git"
@@ -11,7 +11,7 @@
"node": ">=0.5.0"
},
"dependencies": {
- "express": "*"
+ "express": ">2.x"
},
"devDependencies": {}
}
Please sign in to comment.
Something went wrong with that request. Please try again.