clan-cli: fix error message if registering parser fails
This commit is contained in:
@@ -24,8 +24,8 @@ def main() -> None:
|
|||||||
parser_config = subparsers.add_parser("config")
|
parser_config = subparsers.add_parser("config")
|
||||||
try:
|
try:
|
||||||
config.register_parser(parser_config)
|
config.register_parser(parser_config)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError as e:
|
||||||
warn("The config command does not in the nix sandbox")
|
warn(f"The config command does not work in the nix sandbox: {e}")
|
||||||
|
|
||||||
parser_ssh = subparsers.add_parser("ssh", help="ssh to a remote machine")
|
parser_ssh = subparsers.add_parser("ssh", help="ssh to a remote machine")
|
||||||
ssh.register_parser(parser_ssh)
|
ssh.register_parser(parser_ssh)
|
||||||
|
|||||||
Reference in New Issue
Block a user