about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index f2c7b1b..148c354 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -129,8 +129,9 @@ fn inject(allocator: std.mem.Allocator, f: std.fs.File, srcpath: []const u8) Bui
                 try out_stream.writeAll(chunk[end + 1 ..]);
                 try buf_writer.flush();
             } else {
-                std.log.err("Templating error in {s}", .{srcpath});
-                std.os.linux.exit(1);
+                // NOTE: we need to print the opening brace. we did not find a
+                // closing brace on the same line, so this isn't a ref
+                try out_stream.writeAll("{");
             }
         } else {
             try out_stream.writeAll(chunk);