man: fix unhandled error in loadLongDescription

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2025-03-19 10:45:52 +01:00
parent c81f38feac
commit 344a85eae6
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

View File

@ -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 {