Sat, 22 Jun 2019 23:35:03 +0300
complain if LDRAW_ORG line is missing
header.py | file | annotate | diff | comparison | revisions |
--- a/header.py Sat Jun 22 23:14:40 2019 +0300 +++ b/header.py Sat Jun 22 23:35:03 2019 +0300 @@ -159,6 +159,8 @@ result.cmdline = self.groups[0] else: self.parse_error("couldn't understand header syntax: " + repr(header_entry.text)) + if not result.filetype: + self.parse_error('LDRAW_ORG line is missing') return { 'header': result, 'end-index': self.cursor + 1,