fix(client): keep advertised port for a port-less URL; narrow history refusal catch to unwrapped faults (L4 review)

This commit is contained in:
Joseph Doherty
2026-10-11 10:48:20 -04:00
parent 3067146be3
commit 045a21da14
3 changed files with 33 additions and 4 deletions
@@ -183,9 +183,10 @@ public class HistoryReadCommand : CommandBase
await console.Output.WriteLineAsync();
await console.Output.WriteLineAsync($"{values.Count} values returned.");
}
catch (ServiceResultException ex)
catch (ServiceResultException ex) when (ex.InnerException is null)
{
// e.g. HistoryReadStatus.ThrowIfRefused: a refusal is an operator-facing outcome, not a crash.
// A wrapped failure (certificate validation, identity rejection on connect) keeps its full detail.
throw new CommandException(ex.Message);
}
finally