man: fix unhandled error in loadLongDescription
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
c81f38feac
commit
344a85eae6
@ -71,7 +71,9 @@ func loadLongDescription(cmd *cobra.Command, path string) error {
|
||||
fullpath := filepath.Join(path, cmd.Name()+".md")
|
||||
|
||||
if cmd.HasSubCommands() {
|
||||
loadLongDescription(cmd, filepath.Join(path, cmd.Name()))
|
||||
if err := loadLongDescription(cmd, filepath.Join(path, cmd.Name())); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if _, err := os.Stat(fullpath); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user