mirror of
				https://github.com/lightpanda-io/browser.git
				synced 2025-10-29 15:13:28 +00:00 
			
		
		
		
	fix a silly log crash on exit error
This commit is contained in:
		| @@ -41,6 +41,10 @@ pub fn main() !void { | ||||
|     }; | ||||
|  | ||||
|     run(alloc) catch |err| { | ||||
|         // If explicit filters were set, they won't be valid anymore because | ||||
|         // the args_arena is gone. We need to set it to something that's not | ||||
|         // invalid. (We should just move the args_arena up to main) | ||||
|         log.opts.filter_scopes = &.{}; | ||||
|         log.fatal(.app, "exit", .{ .err = err }); | ||||
|         std.posix.exit(1); | ||||
|     }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Karl Seguin
					Karl Seguin