~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http.py

  • Committer: Aaron Bentley
  • Date: 2005-11-15 21:09:09 UTC
  • mto: (1185.33.17 bzr.dev)
  • mto: This revision was merged to the branch mainline in revision 1509.
  • Revision ID: abentley@panoramicfeedback.com-20051115210909-65710970107c20a3
Throw ConnectionError instead of NoSuchFile except when we get a 404

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from bzrlib.transport import Transport, register_transport
20
20
from bzrlib.errors import (TransportNotPossible, NoSuchFile, 
21
 
                           NonRelativePath, TransportError)
 
21
                           NonRelativePath, TransportError, ConnectionError)
22
22
import os, errno
23
23
from cStringIO import StringIO
24
24
import urllib2
149
149
                                 orig_error=e)
150
150
            raise
151
151
        except (BzrError, IOError), e:
152
 
            raise NoSuchFile(msg = "Error retrieving %s: %s" 
 
152
            raise ConnectionError(msg = "Error retrieving %s: %s" 
153
153
                             % (self.abspath(relpath), str(e)),
154
154
                             orig_error=e)
155
155