Skip to content

Commit

Permalink
fix configuration file depth walk
Browse files Browse the repository at this point in the history
  • Loading branch information
James Oulman committed Oct 28, 2021
1 parent 46b71b6 commit 83fd9c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func getPath(depth int, filename string) string {
}

var pathPrefix string
for i := 0; i <= depth; i++ {
for i := 0; i < depth; i++ {
pathPrefix += fmt.Sprintf("..%s", sep)
}

Expand All @@ -29,5 +29,5 @@ func FindConfigFile(depth int, filename string) (string, error) {
return path, nil
}
}
return "", fmt.Errorf("unable to locate %s at parentdepth=%d", filename, depth)
return "", fmt.Errorf("unable to locate %s at", filename)
}

0 comments on commit 83fd9c7

Please sign in to comment.