Skip to content

Commit 344a85e

Browse files
committed
man: fix unhandled error in loadLongDescription
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent c81f38f commit 344a85e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

man/generate.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ func loadLongDescription(cmd *cobra.Command, path string) error {
7171
fullpath := filepath.Join(path, cmd.Name()+".md")
7272

7373
if cmd.HasSubCommands() {
74-
loadLongDescription(cmd, filepath.Join(path, cmd.Name()))
74+
if err := loadLongDescription(cmd, filepath.Join(path, cmd.Name())); err != nil {
75+
return err
76+
}
7577
}
7678

7779
if _, err := os.Stat(fullpath); err != nil {

0 commit comments

Comments
 (0)