From 9b1f0cf9185b2258b71ab58d00f4b093a1174285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 3 Aug 2023 13:38:35 +0200 Subject: [PATCH] clan-cli: fix error message if registering parser fails --- pkgs/clan-cli/clan_cli/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/cli.py b/pkgs/clan-cli/clan_cli/cli.py index d0cefea9..4868c655 100644 --- a/pkgs/clan-cli/clan_cli/cli.py +++ b/pkgs/clan-cli/clan_cli/cli.py @@ -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)