code review
diff --git a/itest.py b/itest.py
index 178acce..018a11b 100644
--- a/itest.py
+++ b/itest.py
@@ -74,8 +74,8 @@
if line.strip() != "":
self.on_result_cb(json.loads(line))
except Exception as err:
- msg = "Error during postprocessing results: {0!r}".format(err)
- raise RuntimeError(msg)
+ msg_templ = "Error during postprocessing results: {0!r}"
+ raise RuntimeError(msg_templ.format(err.message))
else:
templ = "Command {0!r} failed with code {1}. Error output is:\n{2}"
logger.error(templ.format(cmd, code, err))