Print godoc installation instructions when it is not found

This commit is contained in:
Trevor Slocum 2020-08-11 16:08:06 -07:00
parent d35eebc599
commit cd878c2918
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
0.1.7:
- Print godoc installation instructions when it is not found
0.1.6:
- Write documentation to docs.zip
- Create temporary directory when missing

View File

@ -61,7 +61,7 @@ func main() {
flag.Parse()
err := run()
if godoc != nil {
if godoc != nil && godoc.Process != nil {
godoc.Process.Kill()
}
if err != nil {
@ -185,7 +185,7 @@ func run() error {
err := godoc.Start()
if err != nil {
return fmt.Errorf("failed to execute godoc: %s", err)
return fmt.Errorf("failed to execute godoc: %s\ninstall godoc by running: go get golang.org/x/tools/cmd/godoc\nthen ensure ~/go/bin is in $PATH", err)
}
c := make(chan os.Signal, 1)