def reporterrors(self, job, jobres):
# type: (ExeCall, ExeResult) -> None
if not self.should_report_error(job, jobres):
return
category = INFO_PROCERRORS
if jobres.error is not None:
iprint(category, red("Error: calling %s caused this error: %s" % (job.exe,
jobres.error)))
else:
iprint(category, red("Error: %s returned code %s" % (job.exe, jobres.returncode)))
iprint(category, " for these arguments: %s" % colored_cmdargs(job.cmdargs, RED))
if jobres.stderr:
text = jobres.stderr
try:
text = unistr(text)
except UnicodeDecodeError:
pass
iprint(INFO_PROCERRORS, 'formatter stderr:"""\\\n%s"""' % red(text))
评论列表
文章目录