Skip to content

Commit acdd9db

Browse files
committed
Throw exception if in verbose mode
1 parent f597baf commit acdd9db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

workspace_tools/make.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,8 @@
190190
except KeyboardInterrupt, e:
191191
print "\n[CTRL+c] exit"
192192
except Exception,e:
193-
print "[ERROR] %s" % str(e)
193+
if options.verbose:
194+
import traceback
195+
traceback.print_exc(file=sys.stdout)
196+
else:
197+
print "[ERROR] %s" % str(e)

0 commit comments

Comments
 (0)