summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index e6de7f9..c8ebcfe 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -23,7 +23,9 @@ pub fn main() !void {
             const buf = try stdin.readUntilDelimiterAlloc(allocator, '\n', 1024);
             defer allocator.free(buf);
 
-            try process_buf(buf, allocator);
+            process_buf(buf, allocator) catch |err| {
+                try stdout.print("Error parsing line: {any}\n", .{err});
+            };
         }
     } else {
         std.debug.print("Tokenizing! {s}\n", .{path});