Skip to content

Commit

Permalink
Portuguese translators updated to 1.9.7v2 (#9881)
Browse files Browse the repository at this point in the history
* Portuguese translators updated to 1.9.7.
* Adding a better error message to translator.py when a class with no base class is found.
  • Loading branch information
fjtc committed Feb 26, 2023
1 parent 9de8406 commit be4821e
Show file tree
Hide file tree
Showing 3 changed files with 555 additions and 49 deletions.
2 changes: 1 addition & 1 deletion doc/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def __collectPublicMethodPrototypes(self, tokenIterator):
the source file."""

assert(self.classId != 'Translator')
assert(self.baseClassId != None)
assert self.baseClassId != None, 'Class ' + self.classId + ' from the file ' + self.fname + ' does not have a base class.'

# The following finite automaton slightly differs from the one
# inside self.collectPureVirtualPrototypes(). It produces the
Expand Down
Loading

0 comments on commit be4821e

Please sign in to comment.