cmd, may_simulate=True, timeout=tf_timeout,
stdout=PIPE, stderr=PIPE, check=True)
except CalledProcessError as e:
- msg = _("Error on executing {cmd!r}: return value {v}.").format(
- cmd=e.cmd, v=e.returncode)
+# msg = _("Error on executing {cmd!r}: return value {v}.").format(
+# cmd=e.cmd, v=e.returncode)
if e.stdout:
- msg += '\nOutput: {}'.format(e.stdout)
+ print(self.colored("Output", 'AQUA') + ':\n' + e.stdout)
if e.stderr:
- msg += '\nError message: {}'.format(e.stderr)
- raise ExpectedHandlerError(msg)
+ print(self.colored("Error message", ('BOLD', 'RED')) + ':\n' + e.stderr)
+ raise ExpectedHandlerError(str(e))
LOG.debug(_("Completed process:") + "\n" + str(result))