summaryrefslogtreecommitdiff
path: root/lib/git/errors.py
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2008-06-20 23:22:52 +0200
committerFlorian Apolloner <florian@apolloner.eu>2008-06-20 23:22:52 +0200
commit5b01b589e7a19d6be5bd6465e600f84aa8015282 (patch)
treeb1ff3f59c4cac75bcb0e2124b68dd75bf42d1f1f /lib/git/errors.py
parent66beac619ba944afeca9d15c56ccc60d5276a799 (diff)
downloadgitpython-5b01b589e7a19d6be5bd6465e600f84aa8015282.tar.gz
made with_exceptions=True default (don't look before you leak ;)) and removed the combined output of stderr and stdout.
Also renamed with_status to extended_output. The method_missing function needs to be modified, as it does a kwargs.pop(xxx, None); which resulted in with_excpetions=None -> False all the time... Test should follow tomorrow.
Diffstat (limited to 'lib/git/errors.py')
-rw-r--r--lib/git/errors.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/git/errors.py b/lib/git/errors.py
index f3fae26b..f0a4be1a 100644
--- a/lib/git/errors.py
+++ b/lib/git/errors.py
@@ -5,4 +5,12 @@ class NoSuchPathError(Exception):
pass
class GitCommandError(Exception):
- pass
+ def __init__(self, command, status, stderr=None):
+ self.stderr = stderr
+ self.status = status
+ self.command = command
+
+ def __str__(self):
+ return repr("%s returned exit status %d" %
+ (str(self.command), self.status))
+