mirror of
https://github.com/golang/go
synced 2024-09-25 01:20:13 -06: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
@ -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…
Reference in New Issue
Block a user