We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8189194 commit c90ca0cCopy full SHA for c90ca0c
browser_openbsd.go
@@ -5,12 +5,10 @@ import (
5
"os/exec"
6
)
7
8
-var errNoXdgOpen = errors.New("xdg-open: command not found - install xdg-utils from ports(8)")
9
-
10
func openBrowser(url string) error {
11
err := runCmd("xdg-open", url)
12
if e, ok := err.(*exec.Error); ok && e.Err == exec.ErrNotFound {
13
- return errNoXdgOpen
+ return errors.New("xdg-open: command not found - install xdg-utils from ports(8)")
14
}
15
return err
16
0 commit comments