comparison hglib/error.py @ 36:00bb0701323a

error: return stderr as __str__ for CommandError
author Idan Kamara <idankk86@gmail.com>
date Mon, 15 Aug 2011 22:46:45 +0300
parents 79f88b4db15f
children 59cb26bf866e
comparison
equal deleted inserted replaced
35:1e33bbea23e5 36:00bb0701323a
2 def __init__(self, args, ret, out, err): 2 def __init__(self, args, ret, out, err):
3 self.args = args 3 self.args = args
4 self.ret = ret 4 self.ret = ret
5 self.out = out 5 self.out = out
6 self.err = err 6 self.err = err
7
8 def __str__(self):
9 return self.err
7 10
8 class ServerError(Exception): 11 class ServerError(Exception):
9 pass 12 pass
10 13
11 class ResponseError(ServerError, ValueError): 14 class ResponseError(ServerError, ValueError):