##// END OF EJS Templates
lfs: make the exception messages consistent...
Matt Harbison -
r40698:93e5d182 default
parent child Browse files
Show More
@@ -441,7 +441,7 b' class _gitlfsremote(object):'
441 except util.urlerr.httperror as ex:
441 except util.urlerr.httperror as ex:
442 if self.ui.debugflag:
442 if self.ui.debugflag:
443 self.ui.debug('%s: %s\n' % (oid, ex.read()))
443 self.ui.debug('%s: %s\n' % (oid, ex.read()))
444 raise LfsRemoteError(_('HTTP error: %s (oid=%s, action=%s)')
444 raise LfsRemoteError(_('LFS HTTP error: %s (oid=%s, action=%s)')
445 % (ex, oid, action))
445 % (ex, oid, action))
446 except util.urlerr.urlerror as ex:
446 except util.urlerr.urlerror as ex:
447 hint = (_('attempted connection to %s')
447 hint = (_('attempted connection to %s')
@@ -282,7 +282,7 b' Test a bad checksum sent by the client i'
282 $ hg -R client push http://localhost:$HGPORT1
282 $ hg -R client push http://localhost:$HGPORT1
283 pushing to http://localhost:$HGPORT1/
283 pushing to http://localhost:$HGPORT1/
284 searching for changes
284 searching for changes
285 abort: HTTP error: HTTP Error 422: corrupt blob (oid=b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c, action=upload)!
285 abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c, action=upload)!
286 [255]
286 [255]
287
287
288 $ echo 'test lfs file' > server/lfs3.bin
288 $ echo 'test lfs file' > server/lfs3.bin
@@ -294,14 +294,14 b' Test an I/O error during the processing '
294
294
295 $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \
295 $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \
296 > -R client update -r tip
296 > -R client update -r tip
297 abort: HTTP error: HTTP Error 500: Internal Server Error (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)!
297 abort: LFS HTTP error: HTTP Error 500: Internal Server Error (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)!
298 [255]
298 [255]
299
299
300 Test a checksum failure during the processing of the GET request
300 Test a checksum failure during the processing of the GET request
301
301
302 $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \
302 $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \
303 > -R client update -r tip
303 > -R client update -r tip
304 abort: HTTP error: HTTP Error 422: corrupt blob (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)!
304 abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)!
305 [255]
305 [255]
306
306
307 $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
307 $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
General Comments 0
You need to be logged in to leave comments. Login now