Print stack trace in case of verbose

pull/7769/head
Olli-Pekka Puolitaival 2018-08-13 12:42:48 +03:00
parent 6107769239
commit 72a0bd4374
1 changed files with 3 additions and 0 deletions

View File

@ -220,6 +220,9 @@ if __name__ == '__main__':
# NotSupportedException is handled by the build log
pass
except Exception as e:
if options.verbose:
import traceback
traceback.print_exc()
# Some other exception occurred, print the error message
print(e)