Skip to content

Commit f777376

Browse files
committed
🚚 invalid exitcode -> nonzero exitcode
1 parent 44909ba commit f777376

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/judge_core/src/judge_output.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ pub enum JudgeOutputParseError {
4949
#[error("Invalid JSON: {0}")]
5050
InvalidJson(String),
5151
#[error("Non-zero exit code")]
52-
InvalidExitCode,
52+
NonZeroExitCode,
5353
}
5454

5555
pub fn parse(output: &std::process::Output) -> Result<JudgeReport, JudgeOutputParseError> {
5656
let stdout = String::from_utf8_lossy(&output.stdout).to_string();
5757
if !output.status.success() {
58-
return Err(JudgeOutputParseError::InvalidExitCode);
58+
return Err(JudgeOutputParseError::NonZeroExitCode);
5959
}
6060
let judge_report: JudgeReport = serde_json::from_str(&stdout)
6161
.map_err(|e| JudgeOutputParseError::InvalidJson(e.to_string()))?;

0 commit comments

Comments
 (0)