Skip to content

Commit

Permalink
prettier exit on stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
dorschw committed Dec 10, 2024
1 parent f4694b0 commit 0c7af83
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions riff/riff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0c7af83

Please sign in to comment.