This commit is contained in:
Joey Hess 2015-02-18 17:46:58 -04:00
parent a01285ff33
commit b541a5e38b
2 changed files with 2 additions and 2 deletions

View file

@ -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