Merge pull request 'clan-cli: fix error message if registering parser fails' (#75) from mic92 into main
All checks were successful
build / test (push) Successful in 8s

This commit is contained in:
clan-bot 2023-08-03 11:39:10 +00:00
commit 7fa6808478

View File

@ -24,8 +24,8 @@ def main() -> None:
parser_config = subparsers.add_parser("config")
try:
config.register_parser(parser_config)
except subprocess.CalledProcessError:
warn("The config command does not in the nix sandbox")
except subprocess.CalledProcessError as e:
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")
ssh.register_parser(parser_ssh)