core: remote error handling (#3347)

* core: remote error handling

* fix test, show DB errors
This commit is contained in:
Evgeny Poberezkin
2023-11-11 16:03:12 +00:00
committed by GitHub
parent beb22c6f87
commit 8b67ff7a00
4 changed files with 33 additions and 34 deletions
+2
View File
@@ -1822,6 +1822,8 @@ viewChatError logLevel = \case
SEChatItemNotFoundByText text -> ["message not found by text: " <> plain text]
SEDuplicateGroupLink g -> ["you already have link for this group, to show: " <> highlight ("/show link #" <> viewGroupName g)]
SEGroupLinkNotFound g -> ["no group link, to create: " <> highlight ("/create link #" <> viewGroupName g)]
SERemoteCtrlNotFound rcId -> ["no remote controller " <> sShow rcId]
SERemoteHostNotFound rhId -> ["no remote host " <> sShow rhId]
e -> ["chat db error: " <> sShow e]
ChatErrorDatabase err -> case err of
DBErrorEncrypted -> ["error: chat database is already encrypted"]