Make AliceClient handle protocol exceptions
MODIFY
WalletWasabi/WabiSabi/Client/AliceClient.cs
WalletWasabi/WabiSabi/Client/AliceClient.cs
@@ -102,9 +102,7 @@ public class AliceClient
Logger.LogInfo($"Round ({roundState.Id}), Alice ({aliceClient.AliceId}): Registered {coin.OutPoint}.");
}
- catch (System.Net.Http.HttpRequestException ex)
- {
- if (ex.InnerException is WabiSabiProtocolException wpe)
+ catch (WabiSabiProtocolException wpe)
{
switch (wpe.ErrorCode)
{
@@ -144,7 +142,7 @@ public class AliceClient
Logger.LogInfo($"{coin.Coin.Outpoint} cannot be registered: '{wpe.ErrorCode}'.");
break;
}
- }
+
throw;
}

Make AliceClient handle protocol exceptions