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:48:11 +01:00
parent c81f38feac
commit 344a85eae6
+3 -1
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 {