Skip to content

Commit

Permalink
error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
tlevine committed Jan 25, 2013
1 parent db4bc91 commit 2daa741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app.coffee
Expand Up @@ -182,7 +182,7 @@ server.put '/applications/:permitApplicationNumber', (req, res, next) ->
return next(new restify.NotAuthorizedError 'Incorrect username or password')
notValidMsg = notValid req, res
if notValidMsg
return next(new restify.MissingParameterError notValidMsg)
return next(new restify.InvalidContentError notValidMsg)

# Lines of SQL
sqlExprs = ("#{key[0]} = ?" for key in SCHEMA when req.body[key[0]] != undefined)
Expand Down

0 comments on commit 2daa741

Please sign in to comment.