mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/godoc: better error message for missing index files
Fixes #5024. R=golang-dev, r CC=golang-dev https://golang.org/cl/8222045
This commit is contained in:
parent
119189c459
commit
a23dd4fe4e
1 changed files with 2 additions and 0 deletions
|
|
@ -1517,6 +1517,8 @@ func readIndex(filenames string) error {
|
|||
matches, err := filepath.Glob(filenames)
|
||||
if err != nil {
|
||||
return err
|
||||
} else if matches == nil {
|
||||
return fmt.Errorf("no index files match %q", filenames)
|
||||
}
|
||||
sort.Strings(matches) // make sure files are in the right order
|
||||
files := make([]io.Reader, 0, len(matches))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue