/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2008-12-09 05:14:36 UTC
  • mto: (3842.3.12 RemoteVersionedFile)
  • mto: This revision was merged to the branch mainline in revision 3922.
  • Revision ID: andrew.bennetts@canonical.com-20081209051436-3vet9gjvh0rzgl9c
Include formatted traceback in SmartMessageHandlerError details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1579
1579
 
1580
1580
class SmartMessageHandlerError(InternalBzrError):
1581
1581
 
1582
 
    _fmt = "The message handler raised an exception: %(exc_value)s."
 
1582
    _fmt = ("The message handler raised an exception:\n"
 
1583
            "%(traceback_text)s%(exc_value)s")
1583
1584
 
1584
1585
    def __init__(self, exc_info):
1585
 
        self.exc_type, self.exc_value, self.tb = exc_info
1586
 
        
 
1586
        import traceback
 
1587
        self.exc_type, self.exc_value, self.exc_tb = exc_info
 
1588
        self.exc_info = exc_info
 
1589
        self.traceback_text = ''.join(traceback.format_tb(self.exc_tb))
 
1590
 
1587
1591
 
1588
1592
# A set of semi-meaningful errors which can be thrown
1589
1593
class TransportNotPossible(TransportError):