From c1720097997f26709cf680aa2bc9244a941f759b Mon Sep 17 00:00:00 2001 From: Ankit Patial Date: Mon, 19 Jan 2026 19:19:28 +0530 Subject: [PATCH] v0.1.1: Add warning log when mixin is not found --- build.zig.zon | 2 +- src/runtime.zig | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index d5e9be4..d3349d2 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,6 @@ .{ .name = .pugz, - .version = "0.1.0", + .version = "0.1.1", .fingerprint = 0x822db0790e17621d, // Changing this has security and trust implications. .minimum_zig_version = "0.15.2", .dependencies = .{ diff --git a/src/runtime.zig b/src/runtime.zig index a24df6f..81a4a22 100644 --- a/src/runtime.zig +++ b/src/runtime.zig @@ -765,8 +765,11 @@ pub const Runtime = struct { } } - // If still not found, skip this mixin call - const mixin_def = mixin orelse return; + // If still not found, log warning and skip this mixin call + const mixin_def = mixin orelse { + std.log.warn("mixin '{s}' not found, skipping", .{call.name}); + return; + }; try self.context.pushScope(); defer self.context.popScope();