Skip to content

Commit

Permalink
Log grep process failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkrodrigues committed Jan 29, 2025
1 parent 3529bb8 commit 1d090dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/scripts/find-broken-docs-links.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ def _check_tracked_files(
).splitlines():
_parse_and_print_match(match, error_msg)
found_matches = True
except subprocess.CalledProcessError:
pass
except subprocess.CalledProcessError as ex:
if ex.returncode != 1:
print(f"Failed to grep '{path}' - exit status {ex.returncode}.", file=sys.stderr)

return found_matches

Expand Down

0 comments on commit 1d090dc

Please sign in to comment.