mirror of https://github.com/ARMmbed/mbed-os.git
Print stack trace in case of verbose
parent
6107769239
commit
72a0bd4374
|
|
@ -220,6 +220,9 @@ if __name__ == '__main__':
|
||||||
# NotSupportedException is handled by the build log
|
# NotSupportedException is handled by the build log
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
if options.verbose:
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
# Some other exception occurred, print the error message
|
# Some other exception occurred, print the error message
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue