Skip to content

Commit 6ec1ad3

Browse files
committed
Update error message
1 parent b4560e1 commit 6ec1ad3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bittensor_cli/cli.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -613,11 +613,12 @@ def debug_callback(value: bool):
613613
or os.path.expanduser(defaults.config.debug_file_path)
614614
)
615615
if not debug_file_loc.exists():
616-
print_error(
617-
f"The debug file '{debug_file_loc}' does not exist. This indicates that you have not run a command "
618-
f"which has logged debug output, or you deleted this file. If the debug file was created using the "
619-
f"BTCLI_DEBUG_FILE environment variable, please set the value for the same location, and re-run "
620-
f"this `btcli --debug` command."
616+
err_console.print(
617+
f"[red]Error: The debug file '{arg__(str(debug_file_loc))}' does not exist. This indicates that you have"
618+
f" not run a command which has logged debug output, or you deleted this file. Debug logging only occurs"
619+
f" if {arg__('use_cache')} is set to True in your config ({arg__('btcli config set')}). If the debug "
620+
f"file was created using the {arg__('BTCLI_DEBUG_FILE')} environment variable, please set the value for"
621+
f" the same location, and re-run this {arg__('btcli --debug')} command.[/red]"
621622
)
622623
raise typer.Exit()
623624
save_file_loc_ = Prompt.ask(

0 commit comments

Comments
 (0)