]> git-server-git.apps.pok.os.sepia.ceph.com Git - remoto.git/commitdiff
backends: include stdout on unexpected remote exceptions
authorAlfredo Deza <alfredo@deza.pe>
Tue, 26 Feb 2019 14:59:28 +0000 (09:59 -0500)
committerAlfredo Deza <alfredo@deza.pe>
Tue, 26 Feb 2019 14:59:28 +0000 (09:59 -0500)
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
remoto/backends/__init__.py

index 1ac42256c16a72139cacd8107c4c1e4b83898346..739c62231af9c024e14e6d9bc5c1affb15770d5a 100644 (file)
@@ -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