mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +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):
|
elif re.match(r's*\#', line):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
sys.exit("Failed to parse %s." % file_name)
|
print_warning('Failed to parse "{}" in {}'.format(line, file_name))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
help_epilog = '''Production text substitutions:
|
help_epilog = '''Production text substitutions:
|
||||||
|
Loading…
Reference in New Issue
Block a user