We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe0f6df commit 25e39f1Copy full SHA for 25e39f1
templates/express/config/express.js
@@ -61,10 +61,10 @@ module.exports = function(app) {
61
<% } %>
62
// Router (only error handlers should come after this)
63
app.use(app.router);
64
-
65
- // Error handler
66
- if('development' === app.get('env')) {
67
- app.use(express.errorHandler())
68
- }
+ });
+
+ // Error handler
+ app.configure('development', function(){
+ app.use(express.errorHandler());
69
});
70
};
0 commit comments