mirror of https://github.com/astral-sh/ruff
**Summary** Add a static string error message to the formatter syntax
error so we can disambiguate where the syntax error came from
**Test Plan** No fixed tests, we don't expect this to occur, but it
helped with transformers syntax error debugging:
```
Error: Failed to format node
Caused by:
syntax error: slice first colon token was not a colon
```
|
||
|---|---|---|
| .. | ||
| format_element | ||
| printer | ||
| arguments.rs | ||
| buffer.rs | ||
| builders.rs | ||
| diagnostics.rs | ||
| format_element.rs | ||
| format_extensions.rs | ||
| formatter.rs | ||
| group_id.rs | ||
| lib.rs | ||
| macros.rs | ||
| prelude.rs | ||
| source_code.rs | ||