We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44909ba commit f777376Copy full SHA for f777376
‎lib/judge_core/src/judge_output.rs
@@ -49,13 +49,13 @@ pub enum JudgeOutputParseError {
49
#[error("Invalid JSON: {0}")]
50
InvalidJson(String),
51
#[error("Non-zero exit code")]
52
- InvalidExitCode,
+ NonZeroExitCode,
53
}
54
55
pub fn parse(output: &std::process::Output) -> Result<JudgeReport, JudgeOutputParseError> {
56
let stdout = String::from_utf8_lossy(&output.stdout).to_string();
57
if !output.status.success() {
58
- return Err(JudgeOutputParseError::InvalidExitCode);
+ return Err(JudgeOutputParseError::NonZeroExitCode);
59
60
let judge_report: JudgeReport = serde_json::from_str(&stdout)
61
.map_err(|e| JudgeOutputParseError::InvalidJson(e.to_string()))?;
0 commit comments