From 4ee9531ce3c0acd0d221419dc36567d4df67c727 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 11 Sep 2023 09:16:56 -0700 Subject: [PATCH] apprt/glfw: log configuration errors --- src/apprt/glfw.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/apprt/glfw.zig b/src/apprt/glfw.zig index 8d96c99ef..c3c07af07 100644 --- a/src/apprt/glfw.zig +++ b/src/apprt/glfw.zig @@ -67,6 +67,13 @@ pub const App = struct { var config = try Config.load(core_app.alloc); errdefer config.deinit(); + // If we had configuration errors, then log them. + if (!config._errors.empty()) { + for (config._errors.list.items) |err| { + log.warn("configuration error: {s}", .{err.message}); + } + } + // Queue a single new window that starts on launch _ = core_app.mailbox.push(.{ .new_window = .{},