[Pkg-bazaar-commits] ./bzr/unstable r275: - Show innermost not outermost frame location when reporting

Martin Pool mbp at sourcefrog.net
Fri Apr 10 07:43:52 UTC 2009


------------------------------------------------------------
revno: 275
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-04-15 19:00:18 +1000
message:
  - Show innermost not outermost frame location when reporting
    an exception
modified:
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-04-15 08:59:12 +0000
+++ b/bzrlib/commands.py	2005-04-15 09:00:18 +0000
@@ -1056,9 +1056,9 @@
     log_error('bzr: ' + summary)
     bzrlib.trace.log_exception(e)
     tb = sys.exc_info()[2]
-    exinfo = traceback.extract_tb(tb, 1)
+    exinfo = traceback.extract_tb(tb)
     if exinfo:
-        sys.stderr.write('  at %s:%d in %s()\n' % exinfo[0][:3])
+        sys.stderr.write('  at %s:%d in %s()\n' % exinfo[-1][:3])
     sys.stderr.write('  see ~/.bzr.log for debug information\n')
 
 



More information about the Pkg-bazaar-commits mailing list