From: Alfredo Deza Date: Tue, 26 Feb 2019 14:59:28 +0000 (-0500) Subject: backends: include stdout on unexpected remote exceptions X-Git-Tag: 1.1.0~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f5558884e6e51ff516281bf044c511ecc719bab8;p=remoto.git backends: include stdout on unexpected remote exceptions Signed-off-by: Alfredo Deza --- diff --git a/remoto/backends/__init__.py b/remoto/backends/__init__.py index 1ac4225..739c622 100644 --- a/remoto/backends/__init__.py +++ b/remoto/backends/__init__.py @@ -243,7 +243,7 @@ class JsonModuleExecute(object): 'Exception: error calling "%s"' % name ] if code: - raise Exception('Unexpected remote exception: \n%s' % '\n'.join(err)) + raise Exception('Unexpected remote exception: \n%s\n%s' % ('\n'.join(out), '\n'.join(err))) # at this point, there was no stdout, and the exit code was 0, # we must return so that we don't fail trying to serialize back # the JSON