display sqlite error message when it crashes
This commit is contained in:
parent
168f91efec
commit
098afe144e
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ queryDb (DbHandle _ _ jobs) a = do
|
|||
putMVar jobs $ QueryJob $
|
||||
liftIO . putMVar res =<< tryNonAsync a
|
||||
(either throwIO return =<< takeMVar res)
|
||||
`catchNonAsync` (const $ error "sqlite query crashed")
|
||||
`catchNonAsync` (\e -> error $ "sqlite query crashed: " ++ show e)
|
||||
|
||||
{- Writes a change to the database.
|
||||
-
|
||||
|
|
Loading…
Add table
Reference in a new issue