core: print error context on agent errors (#1697)

This commit is contained in:
JRoberts
2023-01-06 13:11:21 +04:00
committed by GitHub
parent edfece3206
commit ae5deab8d3
4 changed files with 58 additions and 36 deletions
+1 -1
View File
@@ -540,7 +540,7 @@ tmeToPref currentTTL tme = uncurry TimedMessagesPreference $ case tme of
data ChatError
= ChatError {errorType :: ChatErrorType}
| ChatErrorAgent {agentError :: AgentErrorType}
| ChatErrorAgent {agentError :: AgentErrorType, connectionEntity_ :: Maybe ConnectionEntity}
| ChatErrorStore {storeError :: StoreError}
| ChatErrorDatabase {databaseError :: DatabaseError}
deriving (Show, Exception, Generic)