change(core/linux): FailedToConnectToDisplay message to include display's name
This commit is contained in:
parent
c6beaa70a8
commit
f181ed08d5
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ pub fn init(
|
||||||
const x11 = X11.init(linux, core, options) catch |err| {
|
const x11 = X11.init(linux, core, options) catch |err| {
|
||||||
const err_msg = switch (err) {
|
const err_msg = switch (err) {
|
||||||
error.LibraryNotFound => "Missing X11 library",
|
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",
|
else => "An unknown error occured while trying to connect to X11",
|
||||||
};
|
};
|
||||||
log.err("{s}\nFalling back to Wayland\n", .{err_msg});
|
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 wayland = Wayland.init(linux, core, options) catch |err| {
|
||||||
const err_msg = switch (err) {
|
const err_msg = switch (err) {
|
||||||
error.LibraryNotFound => "Missing Wayland library",
|
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",
|
else => "An unknown error occured while trying to connect to Wayland",
|
||||||
};
|
};
|
||||||
log.err("{s}\nFalling back to X11\n", .{err_msg});
|
log.err("{s}\nFalling back to X11\n", .{err_msg});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue