From 0c7af83d45d94bb19345fc9a4019f3c108223df7 Mon Sep 17 00:00:00 2001 From: dorschw <81086590+dorschw@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:07:09 +0200 Subject: [PATCH] prettier exit on stderr --- riff/riff.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/riff/riff.py b/riff/riff.py index 6a21554..88fce81 100644 --- a/riff/riff.py +++ b/riff/riff.py @@ -168,9 +168,8 @@ def main( # dead: disable except ArgumentNotSupportedError: raise typer.Exit(1) from None # no need for whole stack trace if ruff_process_result.stderr: - raise RuntimeError( - f"Ruff failed running, stderr:\n{ruff_process_result.stderr}" - ) + logger.error(f"Ruff failed running, stderr:\n{ruff_process_result.stderr}") + raise typer.Exit(1) if not ( filtered_violations := filter_violations(