Print godoc installation instructions when it is not found
This commit is contained in:
parent
d35eebc599
commit
cd878c2918
|
@ -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
|
||||
|
|
4
main.go
4
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue