tool/compile_gatt: print IO exception message and usage

This commit is contained in:
Wayne Keenan 2023-07-23 17:10:34 +01:00 committed by Matthias Ringwald
parent a7666b0251
commit 5ea34488cd

View File

@ -1113,8 +1113,8 @@ try:
print('Created %s' % filename) print('Created %s' % filename)
except IOError as e: except IOError as e:
parser.print_help()
print(usage) print(e)
sys.exit(1) sys.exit(1)
print('Compilation successful!\n') print('Compilation successful!\n')