From f181ed08d55b2ddbdbd9eec07244b571f337f19f Mon Sep 17 00:00:00 2001 From: Ronald M Zielaznicki Date: Mon, 21 Oct 2024 00:17:14 -0400 Subject: [PATCH] change(core/linux): FailedToConnectToDisplay message to include display's name --- src/core/Linux.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Linux.zig b/src/core/Linux.zig index 60b56116..2f9e6182 100644 --- a/src/core/Linux.zig +++ b/src/core/Linux.zig @@ -91,7 +91,7 @@ pub fn init( const x11 = X11.init(linux, core, options) catch |err| { const err_msg = switch (err) { error.LibraryNotFound => "Missing X11 library", - error.FailedToConnectToDisplay => "Failed to connect to display", + error.FailedToConnectToDisplay => "Failed to connect to X11 display", else => "An unknown error occured while trying to connect to X11", }; log.err("{s}\nFalling back to Wayland\n", .{err_msg}); @@ -104,7 +104,7 @@ pub fn init( const wayland = Wayland.init(linux, core, options) catch |err| { const err_msg = switch (err) { error.LibraryNotFound => "Missing Wayland library", - error.FailedToConnectToDisplay => "Failed to connect to display", + error.FailedToConnectToDisplay => "Failed to connect to Wayland display", else => "An unknown error occured while trying to connect to Wayland", }; log.err("{s}\nFalling back to X11\n", .{err_msg});