/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: Martin von Gagern
  • Date: 2011-05-27 12:27:01 UTC
  • mfrom: (5925 +trunk)
  • mto: (5939.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5940.
  • Revision ID: martin.vgagern@gmx.net-20110527122701-92k938sa9ntxp26l
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1715
1715
 
1716
1716
class InvalidHttpResponse(TransportError):
1717
1717
 
1718
 
    _fmt = "Invalid http response for %(path)s: %(msg)s"
 
1718
    _fmt = "Invalid http response for %(path)s: %(msg)s%(orig_error)s"
1719
1719
 
1720
1720
    def __init__(self, path, msg, orig_error=None):
1721
1721
        self.path = path
 
1722
        if orig_error is None:
 
1723
            orig_error = ''
 
1724
        else:
 
1725
            # This is reached for obscure and unusual errors so we want to
 
1726
            # preserve as much info as possible to ease debug.
 
1727
            orig_error = ': %r' % (orig_error,)
1722
1728
        TransportError.__init__(self, msg, orig_error=orig_error)
1723
1729
 
1724
1730