Skip to content

Commit 8ea0f32

Browse files
Peter MarkiZsolt Borbély
authored andcommitted
Print traceback for exceptions caught in main (#214)
JSRemoteTest-DCO-1.0-Signed-off-by: Peter Marki [email protected]
1 parent 0017be8 commit 8ea0f32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jstest/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import argparse
1818
import atexit
1919
import sys
20+
import traceback
2021

2122
import jstest
2223
from jstest import Builder, TestResult, TestRunner
@@ -197,6 +198,7 @@ def main():
197198
except (Exception, KeyboardInterrupt) as e:
198199
jstest.resources.patch_modules(env, revert=True)
199200
jstest.console.error('[%s] %s' % (type(e).__name__, str(e)))
201+
traceback.print_exc()
200202

201203
sys.exit(1)
202204

0 commit comments

Comments
 (0)