From f4952e4f490d3d78a2d33d6a20edb0b2b3288248 Mon Sep 17 00:00:00 2001 From: IC Rainbow Date: Fri, 3 May 2024 20:42:14 +0300 Subject: [PATCH] restore corrId errors --- src/Simplex/Chat.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Simplex/Chat.hs b/src/Simplex/Chat.hs index 6e03c7c46a..22cac5c6a4 100644 --- a/src/Simplex/Chat.hs +++ b/src/Simplex/Chat.hs @@ -4720,9 +4720,9 @@ processAgentMessageConn vr user@User {userId} corrId agentConnId agentMessage = | connId == cmdConnId' && (agentMsgTag == commandExpectedResponse cmdFunction || agentMsgTag == APCT SAEConn ERR_) -> do withStore' $ \db -> deleteCommand db user cmdId action cmdData - | otherwise -> logWarn $ "not matching connection id or unexpected response, corrId = " <> tshow corrId - Just CommandData {cmdId, cmdConnId = Nothing} -> logWarn $ "no command connection id, corrId = " <> tshow corrId - Nothing -> logWarn $ "command not found, corrId = " <> tshow corrId + | otherwise -> err cmdId $ "not matching connection id or unexpected response, corrId = " <> show corrId + Just CommandData {cmdId, cmdConnId = Nothing} -> err cmdId $ "no command connection id, corrId = " <> show corrId + Nothing -> logWarn $ "command not found, corrId = " <> ackKey where acId = AgentConnId agentConnId ackKey = decodeLatin1 $ strEncode corrId