mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
mkenums: Skip unparsed lines
The old glib-mkenums just skipped lines it could not understand.
This commit is contained in:
parent
1e4135f253
commit
f18556749c
@ -192,7 +192,7 @@ def parse_entries(file, file_name):
|
||||
elif re.match(r's*\#', line):
|
||||
pass
|
||||
else:
|
||||
sys.exit("Failed to parse %s." % file_name)
|
||||
print_warning('Failed to parse "{}" in {}'.format(line, file_name))
|
||||
return False
|
||||
|
||||
help_epilog = '''Production text substitutions:
|
||||
|
Loading…
Reference in New Issue
Block a user