feat: Added Rust-style error messages for template errors.

This commit is contained in:
Spencer Brower
2026-07-20 16:53:50 -04:00
parent fec71bd80e
commit 68d349bdb6
4 changed files with 993 additions and 32 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ Syntax_Error :: struct {
msg: string,
pos: int,
}
Data_Error :: struct {
msg: string,
pos: int,
@@ -535,7 +536,7 @@ render_nodes :: proc(
case .Variable:
val := resolve_name(node.key, ctx[:])
if val == nil {
if val == nil {
warn_unknown_key(current, ctx[:], node)
}
if len(node.filters) > 0 {