mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
core: remote error handling (#3347)
* core: remote error handling * fix test, show DB errors
This commit is contained in:
committed by
GitHub
parent
beb22c6f87
commit
8b67ff7a00
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user