WIP
This commit is contained in:
parent
a01285ff33
commit
b541a5e38b
2 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ workerThread db jobs = catchNonAsync loop showerr
|
|||
-}
|
||||
queryDb :: DbHandle -> a -> SqlPersistM a -> IO a
|
||||
queryDb (DbHandle _ jobs _) fallback a =
|
||||
catchNonAsync go (\_ -> return fallback )
|
||||
catchNonAsync go (\e -> print e >> return fallback )
|
||||
where
|
||||
go = do
|
||||
res <- newEmptyMVar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue