summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-04-28 18:43:04 (GMT)
committerRichard Maw <richard.maw@codethink.co.uk>2015-04-30 09:19:26 (GMT)
commitae172291e6e9a8e9eaa3fd09ecc643bb2a48f60f (patch)
treea6520c076fcb6a4f4fea731bee6944691461999c
parentf489767bf698fbf12d0c0cac89ee7228dd3b7da2 (diff)
downloadmorph-ae172291e6e9a8e9eaa3fd09ecc643bb2a48f60f.tar.gz
gitdir.PushFailureError: Show why pushes failed
Change-Id: Ife3a809cbf241d8d5a283d7f010ccb5e4d7ea292
-rw-r--r--morphlib/gitdir.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/morphlib/gitdir.py b/morphlib/gitdir.py
index a6dd26a..5450db2 100644
--- a/morphlib/gitdir.py
+++ b/morphlib/gitdir.py
@@ -128,9 +128,10 @@ class PushFailureError(PushError):
self.exit = exit
self.results = results
self.stderr = stderr
- PushError.__init__(self, 'Push to remote "%(remote)s", '\
- 'push url %(push_url)s '\
- 'failed with exit code %(exit)s' % locals())
+ PushError.__init__(self, 'Push to remote "%(remote)s", '
+ 'push url %(push_url)s '
+ 'failed with exit code %(exit)s\n'
+ 'stderr: %(stderr)s' % locals())
class RefSpec(object):