##// END OF EJS Templates
lfs: improve the error message for a missing remote blob...
Matt Harbison -
r35584:ebf14075 default
parent child Browse files
Show More
@@ -240,7 +240,7 b' class _gitlfsremote(object):'
240 240 filename = getattr(p, 'filename', 'unknown')
241 241 raise LfsRemoteError(
242 242 _(('LFS server error. Remote object '
243 'for file %s not found: %r')) % (filename, response))
243 'for "%s" not found: %r')) % (filename, response))
244 244 raise LfsRemoteError(_('LFS server error: %r') % response)
245 245
246 246 def _extractobjects(self, response, pointers, action):
@@ -60,7 +60,7 b' def readfromstore(self, text):'
60 60 oid = p.oid()
61 61 store = self.opener.lfslocalblobstore
62 62 if not store.has(oid):
63 p.filename = getattr(self, 'indexfile', None)
63 p.filename = self.filename
64 64 self.opener.lfsremoteblobstore.readbatch([p], store)
65 65
66 66 # The caller will validate the content
@@ -185,7 +185,7 b' Check error message when object does not'
185 185 $ rm -rf `hg config lfs.usercache`
186 186 $ hg --config 'lfs.url=https://dewey-lfs.vip.facebook.com/lfs' clone test test2
187 187 updating to branch default
188 abort: LFS server error. Remote object for file data/a.i not found:(.*)! (re)
188 abort: LFS server error. Remote object for "a" not found:(.*)! (re)
189 189 [255]
190 190
191 191 $ $PYTHON $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
General Comments 0
You need to be logged in to leave comments. Login now