From 93f7b172223e16a2e1dfa23ef0699ddc5324f573 Mon Sep 17 00:00:00 2001 From: 2mal3 <56305732+2mal3@users.noreply.github.com> Date: Fri, 7 Nov 2025 12:42:19 +0100 Subject: [PATCH] chore(openBrowser): more detailed error logs --- shared/open_browser.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/open_browser.go b/shared/open_browser.go index b6a8543..c9e6fc0 100644 --- a/shared/open_browser.go +++ b/shared/open_browser.go @@ -23,13 +23,15 @@ func OpenBrowserWindow(url string, fullscreen bool, temp bool) error { args = append(args, arg) } + errs := []string{} for _, bin := range bins { cmd := exec.Command(bin, args...) commandOutput := RunShellCommand(cmd) if commandOutput.ExitCode == 0 { return nil } + errs = append(errs, commandOutput.Stderr) } - return errors.New("chromium not found in PATH") + return errors.New("failed to open browser window: " + fmt.Sprint(errs)) }