Mercurial > python-hglib
view hglib/error.py @ 184:820d7c1e470a 2.4
hglib: fix hg clone --uncompressed option typo (issue5458)
Was getting error.CommandError
"hg clone: option --uncompresses not recognized".
author | Long Vu <long@tlvu.ca> |
---|---|
date | Thu, 23 Mar 2017 22:34:41 -0400 |
parents | 59cb26bf866e |
children |
line wrap: on
line source
class CommandError(Exception): def __init__(self, args, ret, out, err): self.args = args self.ret = ret self.out = out self.err = err def __str__(self): return str((self.ret, self.out.rstrip(), self.err.rstrip())) class ServerError(Exception): pass class ResponseError(ServerError, ValueError): pass class CapabilityError(ServerError): pass