diff options
Diffstat (limited to 'Database')
-rw-r--r-- | Database/Handle.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Database/Handle.hs b/Database/Handle.hs index 1fd9f7834..439e7c18b 100644 --- a/Database/Handle.hs +++ b/Database/Handle.hs @@ -137,7 +137,8 @@ queryDb (DbHandle _ jobs _) a = do res <- newEmptyMVar putMVar jobs $ QueryJob $ liftIO . putMVar res =<< tryNonAsync a - either throwIO return =<< takeMVar res + (either throwIO return =<< takeMVar res) + `catchNonAsync` (const $ error "sqlite query crashed") closeDb :: DbHandle -> IO () closeDb h@(DbHandle worker jobs _) = do |