~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/gio_transport.py

  • Committer: Mattias Eriksson
  • Date: 2010-05-25 09:06:14 UTC
  • mto: This revision was merged to the branch mainline in revision 5259.
  • Revision ID: snaggen@acc.umu.se-20100525090614-cz64zrzb44z1gz7f
Handle gio.Error on mount done and specifically handle gio.ERROR_HOST_NOT_FOUND  

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
        try:
202
202
            obj.mount_enclosing_volume_finish(res)
203
203
        except gio.Error, e:
204
 
            print "ERROR: ", e
 
204
            self._translate_gio_error(e, self.url)
205
205
        finally:
206
206
            self.loop.quit()
207
207
 
566
566
            raise errors.ResourceBusy(path, extra=extra)
567
567
        elif err.code == gio.ERROR_PERMISSION_DENIED:
568
568
            raise errors.PermissionDenied(path, extra=extra)
 
569
        elif err.code == gio.ERROR_HOST_NOT_FOUND:
 
570
            raise errors.PathError(path, extra=extra)
569
571
        elif err.code == gio.ERROR_IS_DIRECTORY:
570
572
            raise errors.PathError(path, extra=extra)
571
573
        else: