[glib] mkenums: Skip unparsed lines
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] mkenums: Skip unparsed lines
- Date: Mon, 17 Jul 2017 15:12:09 +0000 (UTC)
commit f18556749c75629b9bff538dced6311cf77a3ffb
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jul 17 16:04:03 2017 +0100
mkenums: Skip unparsed lines
The old glib-mkenums just skipped lines it could not understand.
gobject/glib-mkenums.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index ca2baa9..8b8dac8 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]