add logs to deleteContact

This commit is contained in:
JRoberts
2022-05-07 19:33:47 +04:00
parent b1024be74d
commit 2c61358cb9
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -2137,9 +2137,9 @@ withStore ::
m a
withStore action =
asks chatStore
>>= runExceptT . action
-- >>= runExceptT . action
-- use this line instead of above to log query errors
-- >>= (\st -> runExceptT $ action st `E.catch` \(e :: E.SomeException) -> liftIO (print e) >> E.throwIO e)
>>= (\st -> runExceptT $ action st `E.catch` \(e :: E.SomeException) -> liftIO (print e) >> E.throwIO e)
>>= liftEither . first ChatErrorStore
chatCommandP :: Parser ChatCommand