core: change AgentErrorType to String to preserve backward compatibility with stored errors (#1485)

This commit is contained in:
Evgeny Poberezkin
2022-12-03 13:28:51 +00:00
committed by GitHub
parent 01a86336c0
commit e0c932c04e
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -2153,7 +2153,7 @@ processAgentMessage (Just user@User {userId}) corrId agentConnId agentMessage =
agentErrToItemStatus :: AgentErrorType -> CIStatus 'MDSnd
agentErrToItemStatus (SMP AUTH) = CISSndErrorAuth
agentErrToItemStatus err = CISSndError err
agentErrToItemStatus err = CISSndError . T.unpack . safeDecodeUtf8 $ strEncode err
badRcvFileChunk :: RcvFileTransfer -> String -> m ()
badRcvFileChunk ft@RcvFileTransfer {cancelled} err =