summaryrefslogtreecommitdiff
path: root/Database/Handle.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Database/Handle.hs')
-rw-r--r--Database/Handle.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Database/Handle.hs b/Database/Handle.hs
index 5d33105f2..cb398ddc2 100644
--- a/Database/Handle.hs
+++ b/Database/Handle.hs
@@ -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