Files
kumomta/docs
Wez Furlong 3ed4bb8083 Improve context in jinja template error messages
For this invalid jinja field: `{{ First Name }}` we'd report:

```
syntax error: unexpected identifier, expected end of variable block (in 0:1)
```

which is not very helpful.

With this commit we now report:

```
failed parsing field 'content.text_body' as template: syntax error: unexpected identifier, expected end of variable block (in template '0' line 1: 'Hello {{ First Name }},')
```

which is much more informative!

We include a length-limited fragment of the extracted source line in the
message to help track down the issue.  It is length limited because the
templates can potentially be very large.

The string truncation requires a function that was stabilized in rust
1.91, so this commit bumps the minimum version required.
2026-01-07 07:46:28 +00:00
..
2025-11-26 16:46:25 +00:00
2025-05-01 10:09:01 -07:00
2025-02-20 13:04:57 +00:00
2025-02-20 16:00:16 -07:00