We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ff4c3f commit d49dc20Copy full SHA for d49dc20
src/Simplex/Messaging/Server/MsgStore/Journal.hs
@@ -632,7 +632,10 @@ openFile f mode = do
632
pure h
633
634
hClose :: Handle -> IO ()
635
-hClose h = IO.hClose h `catchAny` (\e -> logError $ "STORE: hClose, error closing file, " <> tshow e)
+hClose h =
636
+ IO.hClose h `catchAny` \e -> do
637
+ name <- IO.hShow h
638
+ logError $ "STORE: hClose, " <> T.pack name <> ", " <> tshow e
639
640
closeOnException :: Handle -> IO a -> IO a
641
closeOnException h a = a `E.onException` hClose h
0 commit comments