set status to 404 when user or beverage unknown
This commit is contained in:
parent
e631dcb171
commit
cb54edf1c8
1 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ isUser uId route = do
|
|||
case mUser of
|
||||
Nothing -> do
|
||||
setMessageI MsgUserUnknown
|
||||
redirect route
|
||||
redirectWith status404 route
|
||||
Just user ->
|
||||
return user
|
||||
|
||||
|
@ -244,6 +244,6 @@ isBeverage bId route = do
|
|||
case mBev of
|
||||
Nothing -> do
|
||||
setMessageI MsgItemUnknown
|
||||
redirect route
|
||||
redirectWith status404 route
|
||||
Just bev ->
|
||||
return bev
|
||||
|
|
Loading…
Reference in a new issue