better error message

This commit is contained in:
Thomas S Hatch 2014-10-16 12:41:19 -06:00
parent b1d1455d78
commit b6dd239b23

View File

@ -828,7 +828,7 @@ ARGS = {8}\n'''.format(self.minion_config,
if not re.search(RSTR_RE, stdout) or not re.search(RSTR_RE, stderr):
# If RSTR is not seen in both stdout and stderr then there
# was a thin deployment problem.
return 'ERROR: Failure deploying thin: {0}'.format(stdout), stderr, retcode
return 'ERROR: Failure deploying thin: {0}\n{1}'.format(stdout, stderr), stderr, retcode
stdout = re.split(RSTR_RE, stdout, 1)[1].strip()
stderr = re.split(RSTR_RE, stderr, 1)[1].strip()
elif 'ext_mods' == shim_command: