pw_presubmit: Handle Bazel syntax errors
pw_presubmit: Handle Bazel syntax errors

Gracefully handle syntax errors in Bazel build files:

* Catch that a syntax error was found instead of exposing the exception,
* Replace the temp file path with the original file path in the error
  output, and
* Add syntax errors to the errors returned by check_bazel_format()

Also, extend 'pw format' to handle when '--fix' doesn't work as expected
and not report "Formatting fixes applied successfully" unconditionally.

Change-Id: I2ea6f706b84a819e64eefebb34984431c86baee7
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/78840
Reviewed-by: Ewout van Bekkum <638f134dbc68778d6b859fb04a64baea2b00b021@google.com>
Reviewed-by: Anthony DiGirolamo <4cc40125edc24ec5bc72df7917ea0b403ee8cebe@google.com>
Commit-Queue: Rob Mohr <d07614a8a0b466db08f68224f87d738b0f9615cf@google.com>

google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed