mirror of
https://github.com/golang/go
synced 2024-11-19 21:04:43 -07:00
godoc: diagnostic for empty FS tree
R=adg CC=golang-dev https://golang.org/cl/5615055
This commit is contained in:
parent
870c9d1c09
commit
bd41831f66
@ -114,7 +114,12 @@ func registerPublicHandlers(mux *http.ServeMux) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func initFSTree() {
|
func initFSTree() {
|
||||||
fsTree.set(newDirectory(filepath.Join(*goroot, *testDir), nil, -1))
|
dir := newDirectory(filepath.Join(*goroot, *testDir), nil, -1)
|
||||||
|
if dir == nil {
|
||||||
|
log.Println("Warning: FSTree is nil")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
fsTree.set(dir)
|
||||||
invalidateIndex()
|
invalidateIndex()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user