Skip to content

Commit

Permalink
test in the Demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
freizl committed Sep 15, 2023
1 parent 49d42af commit a893922
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hoauth2-demo/src/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import Views
import Web.Scotty
import Web.Scotty qualified as Scotty
import Prelude
import Debug.Breakpoint

-------------------------------------------------------------------------------
-- App --
Expand Down Expand Up @@ -267,6 +268,7 @@ runActionWithIdp ::
ActionM a
runActionWithIdp funcName action = do
midp <- paramValueMaybe "idp" <$> params
liftIO breakpointIO
case midp of
Just idpName -> exceptToActionM (action $ fromText idpName)
Nothing -> raise $ "[" <> funcName <> "] Expects 'idp' parameter but found nothing"
Expand Down

0 comments on commit a893922

Please sign in to comment.