summaryrefslogtreecommitdiff
path: root/coverage/cmdline.py
diff options
context:
space:
mode:
authorAndrew Hoos <andrewjhoos@gmail.com>2016-11-29 17:56:47 -0800
committerAndrew Hoos <andrewjhoos@gmail.com>2016-11-29 17:56:47 -0800
commit677eebd87677680128acad6445715356932f9ddc (patch)
tree3c9a8b9e833882cf7504863035ab45f5e04d0d78 /coverage/cmdline.py
parentb5acf8c95b4c1060a9bc646dcb9cf52137c8df92 (diff)
downloadpython-coveragepy-git-677eebd87677680128acad6445715356932f9ddc.tar.gz
Limit changes to only execfile.py
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r--coverage/cmdline.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index bbddf0a2..89420241 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -754,7 +754,10 @@ def main(argv=None):
try:
status = CoverageScript().command_line(argv)
except ExceptionDuringRun as err:
- # An exception was caught while running the product code.
+ # An exception was caught while running the product code. The
+ # sys.exc_info() return tuple is packed into an ExceptionDuringRun
+ # exception.
+ traceback.print_exception(*err.args)
status = ERR
except CoverageException as err:
# A controlled error inside coverage.py: print the message to the user.