Compare commits

...

1 Commits

Author SHA1 Message Date
2mal3 cd6ec88d23 chore(openBrowser): more detailed error logs 2025-11-07 12:42:19 +01:00
+3 -1
View File
@@ -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))
}