raise exception instead of exiting with useless error
This commit is contained in:
parent
66e31885a7
commit
98ecaba93a
@ -115,11 +115,10 @@ class InterfaceParser(FileParser):
|
|||||||
)
|
)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if not end_matched:
|
if not end_matched:
|
||||||
print(
|
raise ValueError(
|
||||||
"No end match detected when parsing interface files. "
|
f"No end match detected when parsing interface file {file_name}. "
|
||||||
"Make sure to use [EXPORT] : [END]"
|
f"Make sure to use [EXPORT] : [END]"
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
|
||||||
file_conn_entry.sh = FileStartHelper(
|
file_conn_entry.sh = FileStartHelper(
|
||||||
start_name, first_entry_name_or_index, count, None
|
start_name, first_entry_name_or_index, count, None
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user