~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/vfs.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
class GetRequest(VfsRequest):
71
71
 
72
72
    def do(self, relpath):
73
 
        backing_bytes = self._backing_transport.get_bytes(relpath)
 
73
        try:
 
74
            backing_bytes = self._backing_transport.get_bytes(relpath)
 
75
        except errors.ReadError:
 
76
            # cannot read the file
 
77
            return request.FailedSmartServerResponse(('ReadError', ))
74
78
        return request.SuccessfulSmartServerResponse(('ok',), backing_bytes)
75
79
 
76
80