| Index: gclient_utils.py
|
| diff --git a/gclient_utils.py b/gclient_utils.py
|
| index 7558b4266b3aa7bfb622b50500ba2a18eadef68c..cf2cedec5b01284653a96f57061af0dc95dce95a 100644
|
| --- a/gclient_utils.py
|
| +++ b/gclient_utils.py
|
| @@ -27,13 +27,19 @@ import xml.dom.minidom
|
| import xml.parsers.expat
|
|
|
|
|
| -class CheckCallError(OSError):
|
| +class Error(Exception):
|
| + """gclient exception class."""
|
| + pass
|
| +
|
| +
|
| +class CheckCallError(OSError, Error):
|
| """CheckCall() returned non-0."""
|
| - def __init__(self, command, cwd, retcode, stdout, stderr=None):
|
| - OSError.__init__(self, command, cwd, retcode, stdout, stderr)
|
| + def __init__(self, command, cwd, returncode, stdout, stderr=None):
|
| + OSError.__init__(self, command, cwd, returncode, stdout, stderr)
|
| + Error.__init__(self)
|
| self.command = command
|
| self.cwd = cwd
|
| - self.retcode = retcode
|
| + self.returncode = returncode
|
| self.stdout = stdout
|
| self.stderr = stderr
|
|
|
| @@ -111,12 +117,6 @@ def GetNodeNamedAttributeText(node, node_name, attribute_name):
|
| return child_nodes[0].getAttribute(attribute_name)
|
|
|
|
|
| -class Error(Exception):
|
| - """gclient exception class."""
|
| - # TODO(maruel): Merge with CheckCallError.
|
| - pass
|
| -
|
| -
|
| def SyntaxErrorToError(filename, e):
|
| """Raises a gclient_utils.Error exception with the human readable message"""
|
| try:
|
|
|