-
-
Notifications
You must be signed in to change notification settings - Fork 65
Make CLI error paths respect --json #4836
Copy link
Copy link
Open
Labels
gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.Gittensor-scored bug fix — scores a 0.05x multiplier.help wantedExtra attention is neededExtra attention is needed
Description
Metadata
Metadata
Assignees
Labels
gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.Gittensor-scored bug fix — scores a 0.05x multiplier.help wantedExtra attention is neededExtra attention is needed
Problem: Several CLI commands share identical error-handling boilerplate that logs plain text and returns an exit code — but ignores the
--jsonflag on exactly the failure path a monitoring wrapper needs structured output from.Area: AMS / CLI
Proposal: Make the shared error-handling path check
--jsonand emit a structured error object when set, consistent with each command's success-path output shape.Deliverables:
--json.Acceptance criteria:
--jsonagainst a failure case returns valid, parseable JSON describing the error.