Standardize panic messages and clean up code

This commit is contained in:
Ben Buhse 2026-01-25 20:57:05 -06:00
commit e1a0b89ced
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
5 changed files with 52 additions and 24 deletions

View file

@ -11,7 +11,7 @@ const Globals = struct {
pub fn main() !void {
const wayland_display_var = try utils.allocator.dupeZ(u8, process.getEnvVarOwned(utils.allocator, "WAYLAND_DISPLAY") catch {
log.err("Error getting WAYLAND_DISPLAY environment variable. Exiing", .{});
log.err("Error getting WAYLAND_DISPLAY environment variable. Exiting", .{});
std.posix.exit(1);
});
defer utils.allocator.free(wayland_display_var);