mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 00:19:48 +01:00
parent
f490f78563
commit
821b7f0624
|
|
@ -8,7 +8,7 @@ var app = module.exports = express();
|
|||
|
||||
// create an error with .status. we
|
||||
// can then use the property in our
|
||||
// custom error handler (Connect repects this prop as well)
|
||||
// custom error handler (Connect respects this prop as well)
|
||||
|
||||
function error(status, msg) {
|
||||
var err = new Error(msg);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user