diff options
Diffstat (limited to 'lib/git/errors.py')
-rw-r--r-- | lib/git/errors.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/errors.py b/lib/git/errors.py index e9a637c0..cde2798a 100644 --- a/lib/git/errors.py +++ b/lib/git/errors.py @@ -25,8 +25,8 @@ class GitCommandError(Exception): self.stderr = stderr self.status = status self.command = command - + def __str__(self): - return repr("%s returned exit status %d" % - (str(self.command), self.status)) + return ("'%s' returned exit status %i: %s" % + (' '.join(str(i) for i in self.command), self.status, self.stderr)) |