diff --git a/build/tools/ship.py b/build/tools/ship.py index 4e0ae62b..89419b85 100755 --- a/build/tools/ship.py +++ b/build/tools/ship.py @@ -91,6 +91,10 @@ def parseComment(line, line_num, enabled_flags): print 'Fatal Error: {else} found without {if} on line ' + str(line_num) print line quit() + if inside_if == 'else': + print 'Fatal Error: Multiple {else} clauses found in the same if on line ' + str(line_num) + print line + quit() if last_if_true: line = '