Skip to content

Commit dd4418c

Browse files
committed
fix: throw on eval symlinks
1 parent a3bb558 commit dd4418c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

session/path.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ func DeterminePath(choice string) (string, error) {
2222
fullPath := dir.FullPath(choice)
2323

2424
realPath, err := filepath.EvalSymlinks(choice)
25-
if err != nil {
26-
fmt.Println("Couldn't evaluate symbolic link", err)
27-
os.Exit(1)
28-
}
29-
30-
if path.IsAbs(realPath) {
25+
if err == nil && path.IsAbs(realPath) {
3126
return realPath, nil
3227
}
3328

0 commit comments

Comments
 (0)