From ae172291e6e9a8e9eaa3fd09ecc643bb2a48f60f Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Tue, 28 Apr 2015 18:43:04 +0000 Subject: gitdir.PushFailureError: Show why pushes failed Change-Id: Ife3a809cbf241d8d5a283d7f010ccb5e4d7ea292 --- morphlib/gitdir.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/morphlib/gitdir.py b/morphlib/gitdir.py index a6dd26a1..5450db26 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): -- cgit v1.2.1