Commit a23dd4fe authored by Robert Griesemer's avatar Robert Griesemer

cmd/godoc: better error message for missing index files

Fixes #5024.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8222045
parent 119189c4
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment