Browse Source

correctly return error if it's from Getwd

tags/v1.0.2
ojizero 10 months ago
parent
commit
4d75c8284b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      findup.go

+ 1
- 1
findup.go View File

@@ -51,7 +51,7 @@ func findup(name string, fs afero.Fs) (string, error) {
cwd, err := os.Getwd()

if err != nil {
return "", nil
return "", err
}

return findupFrom(name, cwd, fs)

Loading…
Cancel
Save