mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-24 23:55:50 +00:00
core: update broker error type (#1474)
* core: update broker error type * fix test * fix test
This commit is contained in:
committed by
GitHub
parent
a4dd520248
commit
bc28568c63
@@ -650,9 +650,12 @@ viewSMPTestResult = \case
|
||||
Just SMPTestFailure {testStep, testError} ->
|
||||
result
|
||||
<> ["Server requires authorization to create queues, check password" | testStep == TSCreateQueue && testError == SMP SMP.AUTH]
|
||||
<> ["Possibly, certificate fingerprint in server address is incorrect" | testStep == TSConnect && testError == BROKER NETWORK]
|
||||
<> ["Possibly, certificate fingerprint in server address is incorrect" | testStep == TSConnect && brokerErr]
|
||||
where
|
||||
result = ["SMP server test failed at " <> plain (drop 2 $ show testStep) <> ", error: " <> plain (strEncode testError)]
|
||||
brokerErr = case testError of
|
||||
BROKER _ NETWORK -> True
|
||||
_ -> False
|
||||
_ -> ["SMP server test passed"]
|
||||
|
||||
viewChatItemTTL :: Maybe Int64 -> [StyledString]
|
||||
|
||||
Reference in New Issue
Block a user