The `to_string()` method of `tera::Error` structures only returns the string value for itself; the messages from the underlying errors are not included. This effectively means any error from Tera just becomes "failed to render template." To provide a complete message, we have to recursively call `source()` on the error chain and append its string representation to the error message. |
||
---|---|---|
src | ||
.gitattributes | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
rustfmt.toml |