Skip to content

Commit

Permalink
fix: show error message and exit after doc cmd validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
amyXia1994 committed Sep 14, 2023
1 parent 51f534f commit a10d5fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmds/kcl-go/command/cmd_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ kcl-go doc generate --file-path <package path> --target <target directory>`,
genContext, err := opts.ValidateComplete()
if err != nil {
fmt.Println(fmt.Errorf("generate failed: %s", err))
return err
}

err = genContext.GenDoc()
Expand Down

0 comments on commit a10d5fe

Please sign in to comment.