diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index c44b976..9463ace 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -310,6 +310,8 @@ def exit_on_common_errors(): except subprocess.CalledProcessError as e: cmd = shlex.join(e.cmd) sys.exit(f'Subcommand failed with code {e.returncode}: {cmd}') + except FileNotFoundError as e: + sys.exit(str(e)) @exit_on_common_errors()