mirror of https://github.com/ARMmbed/mbed-os.git
Throw exception if in verbose mode
parent
f597baf35b
commit
acdd9db330
|
@ -190,4 +190,8 @@ if __name__ == '__main__':
|
||||||
except KeyboardInterrupt, e:
|
except KeyboardInterrupt, e:
|
||||||
print "\n[CTRL+c] exit"
|
print "\n[CTRL+c] exit"
|
||||||
except Exception,e:
|
except Exception,e:
|
||||||
|
if options.verbose:
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc(file=sys.stdout)
|
||||||
|
else:
|
||||||
print "[ERROR] %s" % str(e)
|
print "[ERROR] %s" % str(e)
|
||||||
|
|
Loading…
Reference in New Issue