cli

Command-line interface for Radroots
git clone https://radroots.dev/git/cli.git
Log | Files | Refs | README | LICENSE

commit 5bcce76b494aaf809693d45ef273f52d5ecd60b0
parent 56292eb8dbecd283b6a46f083627542b010cbe5f
Author: triesap <tyson@radroots.org>
Date:   Fri,  8 May 2026 17:47:30 +0000

cli: handle relay setup publish errors

- map relay setup failures to CLI network errors
- keep farm and listing publish adapters exhaustive
- preserve SDK publish error classification after active relay changes
- validate nested CLI format, check, and test gates

Diffstat:
Msrc/runtime/farm.rs | 1+
Msrc/runtime/listing.rs | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/runtime/farm.rs b/src/runtime/farm.rs @@ -1435,6 +1435,7 @@ fn map_sdk_farm_publish_error(error: SdkPublishError) -> RuntimeError { | SdkPublishError::UnsupportedTransport { .. } | SdkPublishError::UnsupportedSignerMode { .. } => RuntimeError::Config(message), SdkPublishError::Relay(_) + | SdkPublishError::RelaySetup { .. } | SdkPublishError::RelayNotAcknowledged { .. } | SdkPublishError::Radrootsd(_) => RuntimeError::Network(message), } diff --git a/src/runtime/listing.rs b/src/runtime/listing.rs @@ -1149,6 +1149,7 @@ fn map_sdk_listing_publish_error(error: SdkPublishError) -> RuntimeError { | SdkPublishError::UnsupportedTransport { .. } | SdkPublishError::UnsupportedSignerMode { .. } => RuntimeError::Config(message), SdkPublishError::Relay(_) + | SdkPublishError::RelaySetup { .. } | SdkPublishError::RelayNotAcknowledged { .. } | SdkPublishError::Radrootsd(_) => RuntimeError::Network(message), }