Mercurial > public > mercurial-scm > hg
diff hgext/lfs/blobstore.py @ 40662:93e5d18251d6
lfs: make the exception messages consistent
I don't love that it repeats 'HTTP Error' in an already long message, but I
doubt that we should assume that it will always say that on the original
exception message.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 15 Nov 2018 18:14:57 -0500 |
parents | 380f5131ee7b |
children | fb379b78b93e |
line wrap: on
line diff
--- a/hgext/lfs/blobstore.py Thu Nov 15 18:08:29 2018 -0500 +++ b/hgext/lfs/blobstore.py Thu Nov 15 18:14:57 2018 -0500 @@ -441,7 +441,7 @@ except util.urlerr.httperror as ex: if self.ui.debugflag: self.ui.debug('%s: %s\n' % (oid, ex.read())) - raise LfsRemoteError(_('HTTP error: %s (oid=%s, action=%s)') + raise LfsRemoteError(_('LFS HTTP error: %s (oid=%s, action=%s)') % (ex, oid, action)) except util.urlerr.urlerror as ex: hint = (_('attempted connection to %s')