Skip to content

Commit 1a865e0

Browse files
committed
chore: better error message
1 parent 92f102d commit 1a865e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/fsutils/basepath.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"bytes"
55
"cmp"
66
"context"
7-
"errors"
87
"fmt"
98
"os/exec"
109
"path/filepath"
@@ -60,7 +59,7 @@ func GetBasePath(ctx context.Context, mode, cfgDir string) (string, error) {
6059
return wd, nil
6160

6261
default:
63-
return "", errors.New("unknown relative path mode")
62+
return "", fmt.Errorf("unknown relative path mode: %s", mode)
6463
}
6564
}
6665

0 commit comments

Comments
 (0)