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
|
case mUser of
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
setMessageI MsgUserUnknown
|
setMessageI MsgUserUnknown
|
||||||
redirect route
|
redirectWith status404 route
|
||||||
Just user ->
|
Just user ->
|
||||||
return user
|
return user
|
||||||
|
|
||||||
|
@ -244,6 +244,6 @@ isBeverage bId route = do
|
||||||
case mBev of
|
case mBev of
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
setMessageI MsgItemUnknown
|
setMessageI MsgItemUnknown
|
||||||
redirect route
|
redirectWith status404 route
|
||||||
Just bev ->
|
Just bev ->
|
||||||
return bev
|
return bev
|
||||||
|
|
Loading…
Reference in a new issue