Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/services/api/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ app.use(function(req, res, next) {

// error handler
app.use(function(err, req, res, next) {
// set locals, only providing error in development
// set locals, only providing error in development, possibly more
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the point @Issyrae?

res.locals.message = err.message;
res.locals.error = req.app.get('env') === 'development' ? err : {};

Expand Down