Mercurial > public > mercurial-scm > hg
diff hgext/largefiles/lfcommands.py @ 15253:67d010779907
largefiles: improve error reporting
- tweak wording of some error messages
- use consistent capitalization
- always say 'largefile', not 'lfile'
- fix I18N problems
- only raise Abort for errors the user can do something about
author | Greg Ward <greg@gerg.ca> |
---|---|
date | Thu, 13 Oct 2011 20:24:29 -0400 |
parents | 6e809bb4f969 |
children | dd03d3a9f888 |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Wed Oct 12 20:59:27 2011 -0400 +++ b/hgext/largefiles/lfcommands.py Thu Oct 13 20:24:29 2011 -0400 @@ -345,8 +345,8 @@ total=len(files)) source = lfutil.findfile(rsrc, hash) if not source: - raise util.Abort(_('Missing largefile %s needs to be uploaded') - % hash) + raise util.Abort(_('largefile %s missing from store' + ' (needs to be uploaded)') % hash) # XXX check for errors here store.put(source, hash) at += 1