Skip to content

Commit

Permalink
fix(server): get is undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Kristian Flaatten committed Feb 26, 2016
1 parent 4b1bb45 commit 385f33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ requests shall not contain any body – this applies for errors as well.
app.use (err, req, res, next) ->
res.status err.status or 500
console.log err if get('env').toLowerCase() isnt 'test'
console.log err if app.get('env').toLowerCase() isnt 'test'
if res.statusCode >= 500
console.error err.message
Expand Down

0 comments on commit 385f33e

Please sign in to comment.