| ... | @@ -224,7 +224,7 @@ inline fn initEventLoopAndCallMain() u8 { | ... | @@ -224,7 +224,7 @@ inline fn initEventLoopAndCallMain() u8 { |
| 224 | if (std.event.Loop.instance) |loop| { | 224 | if (std.event.Loop.instance) |loop| { |
| 225 | if (!@hasDecl(root, "event_loop")) { | 225 | if (!@hasDecl(root, "event_loop")) { |
| 226 | loop.init() catch |err| { | 226 | loop.init() catch |err| { |
| 227 | std.debug.warn("error: {}\n", .{@errorName(err)}); | 227 | std.log.err("{}", .{@errorName(err)}); |
| 228 | if (@errorReturnTrace()) |trace| { | 228 | if (@errorReturnTrace()) |trace| { |
| 229 | std.debug.dumpStackTrace(trace.*); | 229 | std.debug.dumpStackTrace(trace.*); |
| 230 | } | 230 | } |
| ... | @@ -270,7 +270,7 @@ pub fn callMain() u8 { | ... | @@ -270,7 +270,7 @@ pub fn callMain() u8 { |
| 270 | }, | 270 | }, |
| 271 | .ErrorUnion => { | 271 | .ErrorUnion => { |
| 272 | const result = root.main() catch |err| { | 272 | const result = root.main() catch |err| { |
| 273 | std.debug.warn("error: {}\n", .{@errorName(err)}); | 273 | std.log.err("{}", .{@errorName(err)}); |
| 274 | if (@errorReturnTrace()) |trace| { | 274 | if (@errorReturnTrace()) |trace| { |
| 275 | std.debug.dumpStackTrace(trace.*); | 275 | std.debug.dumpStackTrace(trace.*); |
| 276 | } | 276 | } |