chore(parser/healthcheck): output in code format on error

This commit is contained in:
张泊明518370910136 2024-10-29 17:04:27 -04:00
parent cda3faeb9a
commit 132a50833b
GPG Key ID: D47306D7062CDA9D

View File

@ -21,7 +21,7 @@ func Parse(executorResult stage.ExecutorResult, conf Conf) (stage.ParserResult,
return stage.ParserResult{ return stage.ParserResult{
Score: 0, Score: 0,
Comment: fmt.Sprintf( Comment: fmt.Sprintf(
"Unexpected executor status: %s.\nStdout: %s\nStderr: %s", "Unexpected executor status: %s.\n`stdout`: ```%s\n```\n`stderr`: ```%s\n```",
executorResult.Status, stdout, stderr, executorResult.Status, stdout, stderr,
), ),
}, true }, true