apprt/glfw: log configuration errors

This commit is contained in:
Mitchell Hashimoto
2023-09-11 09:16:56 -07:00
parent a359641d07
commit 4ee9531ce3

View File

@ -67,6 +67,13 @@ pub const App = struct {
var config = try Config.load(core_app.alloc); var config = try Config.load(core_app.alloc);
errdefer config.deinit(); 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 // Queue a single new window that starts on launch
_ = core_app.mailbox.push(.{ _ = core_app.mailbox.push(.{
.new_window = .{}, .new_window = .{},