pub enum CliError<IoErr: Debug> {
Io(IoErr),
Node(String),
}Expand description
Errors surfaced from CliSession::run.
Node flattens any NodeError<…> to a String via format!("{:?}", e)
because the underlying error is generic over the MacBackend’s send and
capacity error types and exposing it would force the CLI’s error type to
inherit those generics. Callers can read the message but cannot react
programmatically to specific node-layer failure modes.
TODO: revisit this if a CLI consumer needs to branch on node errors.
Options include adding a second generic parameter that carries the
underlying NodeError<E, C>, or replacing the loss with a richer
enum that mirrors the variants we actually care about at this layer.