Format command incorrectly prints outdated files
fix(dev-infra): format command incorrectly prints outdated files (#42252)
Format command incorrectly prints outdated filesfixformat command incorrectly prints outdated files
Committed by devversion
commit message
fix(dev-infra): format command incorrectly prints outdated files (#42252)
When `ng-dev format --check` is run, the ng-dev tool prints out
all files that are out-of-date. We recently updated the format
tool to also capture `stderr` for failed files. This broke the
console message as we did not unwrap the `FormatFailure` to
their file path when printing the "ng-dev format" fix command.
PR Close #42252Editor assessment
An exemplary bug-fix message. The subject states the malfunction precisely — the format command incorrectly prints outdated files — under an accurate `fix(dev-infra)` pairing. The body then teaches the root cause like a good postmortem: a recent change made the tool capture `stderr` for failed files, which broke console output because `FormatFailure` objects were not unwrapped to file paths when printing the fix command. Cause, mechanism, and symptom are all present, letting a reader understand the regression without the diff. Footers are the well-formed `PR Close #42252` trailer. Style is clean — imperative subject, no trailing period, no junk. This is how fix messages should read.