Skip to content

Commit b2d745e

Browse files
committed
Prints failures that arise from subnet register in cases of non-json-output
1 parent 4634592 commit b2d745e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bittensor_cli/src/commands/subnets/subnets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,9 @@ async def register(
16681668
)
16691669
if json_output:
16701670
json_console.print(json.dumps({"success": success, "msg": msg}))
1671+
else:
1672+
if not success:
1673+
err_console.print(f"Failure: {msg}")
16711674

16721675

16731676
# TODO: Confirm emissions, incentive, Dividends are to be fetched from subnet_state or keep NeuronInfo

0 commit comments

Comments
 (0)