Skip to content

Commit

Permalink
Make warning an error and exit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Nov 1, 2023
1 parent 2e2087a commit c592543
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions k4MarlinWrapper/scripts/convertMarlinSteeringToGaudi.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,11 @@ def convertProcessors(lines, tree, globParams, constants):
def findWarnIncludes(tree):
"""Check the parsed XML structure for include statments and issue a warning"""
if any(True for _ in tree.iter("include")):
print("WARNING: Found at least one <include ref=\"...\"/> statement in the Marlin steering file")
print(" These cannot be handled by the conversion script.")
print(" Use Marlin -n <input-file> to resolve these includes and convert the output of that")
print("ERROR: Found at least one <include ref=\"...\"/> statement in the Marlin steering file")
print(" These cannot be handled by the conversion script.")
print(" Use Marlin -n <input-file> to resolve these includes and convert the output of that")

sys.exit(1)


def generateGaudiSteering(tree):
Expand Down

0 comments on commit c592543

Please sign in to comment.