From 12751932d1cbfc911a75445061d87264b927de5f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 15 Nov 2025 21:26:31 +0900 Subject: internal/wayland: improve error handling Note: wl_registry_add_listener is undocumented everywhere. Its implementation calls wl_proxy_add_listener which returns 0 on success or -1 on failure. Signed-off-by: Ophestra --- internal/system/output.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/system') diff --git a/internal/system/output.go b/internal/system/output.go index 71acace4..a1666dc3 100644 --- a/internal/system/output.go +++ b/internal/system/output.go @@ -40,6 +40,10 @@ func (e *OpError) Error() string { } func (e *OpError) Message() string { + if m, ok := message.GetMessage(e.Err); ok { + return m + } + switch { case e.Msg != "": return e.Error() -- cgit v1.3.1