diff --git a/scripts/eslint.py b/scripts/eslint.py index 6d86fc588ff6..62730ba08432 100644 --- a/scripts/eslint.py +++ b/scripts/eslint.py @@ -49,6 +49,11 @@ def run_eslint(): capture_output=True ) + if result.returncode != 0: + print(f"ESLint failed with exit code {result.returncode}") + print(result.stderr) # Log errors reported by ESLint + + print(result.stdout) last_line = result.stdout.strip().splitlines()[-1] if result.stdout.strip().splitlines() else "" regex = r'^\d+'