From f5558884e6e51ff516281bf044c511ecc719bab8 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 26 Feb 2019 09:59:28 -0500 Subject: [PATCH] backends: include stdout on unexpected remote exceptions Signed-off-by: Alfredo Deza --- remoto/backends/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5