Commit Graph
5 Commits
Author SHA1 Message Date
Wez Furlong a4c62d4e2e revert rust compiler bump!
Rust 1.93 causes TimeDelta::__add to fail when adding a userdata to
itself with a bland "error borrowing userdata" error message.

Go back to 1.92 to unblock builds for the moment.
2026-04-29 08:28:06 +01:00
Wez Furlong 14583a07b8 update rust requirement to 1.94 2026-04-29 08:12:30 +01:00
Wez Furlong c30f21ae0c cargo update
The file-type dep requires a Rust version bump
2026-01-08 10:31:19 +00:00
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
Sophia Turner c38c078391 add rust-toolchain.toml 2025-10-10 18:45:41 +01:00