Skip to content

Commit

Permalink
Log stderr if Detekt fails to run.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoogieZork committed Nov 13, 2024
1 parent 9dac56d commit 94be67d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/engine/plugins/detekt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def run_detekt(path=None):
output["details"] = _parse_report(path, detekt_report)
# If there was an error
else:
logger.error(f"Detekt exited with code {result.returncode}: {stderr}")
output["success"] = False
output["errors"] = ["The detekt plugin encountered a fatal error"]

Expand Down

0 comments on commit 94be67d

Please sign in to comment.