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 8913916 commit 4096442Copy full SHA for 4096442
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