Skip to content

Commit

Permalink
Always generate failure code section (#2325)
Browse files Browse the repository at this point in the history
even for functions without any errors specified
  • Loading branch information
krOoze authored Mar 14, 2024
1 parent 69ba4fe commit 7b42841
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/validitygenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,14 @@ def writeInclude(self, directory, basename, validity: ValidityCollection,
write('On failure, this command returns::', file=fp)
write('endif::doctype-manpage[]', file=fp)
write(errorcodes, file=fp)
else: #no errorcodes
write('ifndef::doctype-manpage[]', file=fp)
write('<<fundamentals-errorcodes,Failure>>::', file=fp)
write('None', file=fp)
write('endif::doctype-manpage[]', file=fp)
write('ifdef::doctype-manpage[]', file=fp)
write('This command does not return any failure codes::', file=fp)
write('endif::doctype-manpage[]', file=fp)
write('****', file=fp)
write('', file=fp)

Expand Down

0 comments on commit 7b42841

Please sign in to comment.