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.
exec.ErrDot
1 parent cfb1cb1 commit ce4fd95Copy full SHA for ce4fd95
modules/setting/setting.go
@@ -6,6 +6,7 @@ package setting
6
7
import (
8
"encoding/base64"
9
+ "errors"
10
"fmt"
11
"math"
12
"net"
@@ -466,8 +467,7 @@ func getAppPath() (string, error) {
466
467
}
468
469
if err != nil {
- // FIXME: Once we switch to go 1.19 use !errors.Is(err, exec.ErrDot)
470
- if !strings.Contains(err.Error(), "cannot run executable found relative to current directory") {
+ if !errors.Is(err, exec.ErrDot) {
471
return "", err
472
473
appPath, err = filepath.Abs(os.Args[0])
0 commit comments