# HG changeset patch # User Teemu Piippo # Date 1561235703 -10800 # Node ID afaa4d3bc3e57759f239b5d5cf78ca6f71714d3f # Parent e28b249b44221a19d7845f328f2d1842ff651f45 complain if LDRAW_ORG line is missing diff -r e28b249b4422 -r afaa4d3bc3e5 header.py --- 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,