reporting errors, but not passing tests.

This commit is contained in:
Adam C. Baker
2015-01-26 17:31:59 -08:00
parent b504473790
commit ead346816b
4 changed files with 76 additions and 15 deletions
+3 -4
View File
@@ -54,10 +54,9 @@ main = do
runSettings appSettings $ middle $ \req respond -> do
body <- strictRequestBody req
thing <- liftIO $ H.session pool $ H.tx Nothing $ authenticated currRole anonRole (app body) req
case thing of
Right r -> respond r
Left _ -> undefined
resOrError <- liftIO $ H.session pool $ H.tx Nothing $
authenticated currRole anonRole (app body) req
either (undefined) respond resOrError
where
describe = progDesc "create a REST API to an existing Postgres database"