mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
feat: Added Rust-style error messages for template errors.
This commit is contained in:
@@ -18,7 +18,12 @@ leak_parse_free_tokens :: proc(t: ^testing.T) {
|
||||
mem.dynamic_arena_init(&arena)
|
||||
defer mem.dynamic_arena_destroy(&arena)
|
||||
|
||||
tmpl, err := parse("Hello {{name}}!", context.allocator, mem.dynamic_arena_allocator(&arena))
|
||||
tmpl, err := parse(
|
||||
"Hello {{name}}!",
|
||||
"<test>",
|
||||
context.allocator,
|
||||
mem.dynamic_arena_allocator(&arena),
|
||||
)
|
||||
testing.expect(t, err == nil)
|
||||
defer delete_template(&tmpl)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user