From b0dfeab099cb59ca733d06d519e8bf3fedf41e32 Mon Sep 17 00:00:00 2001 From: jhermann Date: Mon, 22 Feb 2016 16:26:02 +0100 Subject: [PATCH] escape error log in command failure diagnostics --- invoke/exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/invoke/exceptions.py b/invoke/exceptions.py index e73f4ce5b..85af227d6 100644 --- a/invoke/exceptions.py +++ b/invoke/exceptions.py @@ -35,6 +35,7 @@ def __str__(self): if self.result.pty: err_label = "Stdout (pty=True; no stderr possible)" err_text = self.result.stdout + err_text = '\n'.join([repr(i)[1:-1] for i in err_text.splitlines()]) return """Command execution failure! Exit code: {0}