Improve logging of prettier errors (#32665)

In particular, seems like the error message and the message sent to
prettier were mixed up before

Release Notes:

- N/A
83cd1d2545Michael Sloan committed on 6/13/2025, 7:26:06 AM· committed by GitHubparentbc68455
2 files changedLine totals unavailable