update_mir_test_checks: Improve message when updating fails

llvm-svn: 316133
This commit is contained in:
Justin Bogner 2017-10-18 22:36:08 +00:00
parent c945450d2b
commit ff1137cc83

View File

@ -399,8 +399,12 @@ def main():
args = parser.parse_args()
for test in args.tests:
update_test_file(args.llc, test, args.remove_common_prefixes,
verbose=args.verbose)
try:
update_test_file(args.llc, test, args.remove_common_prefixes,
verbose=args.verbose)
except Exception:
warn('Error processing file', test_file=test)
raise
if __name__ == '__main__':