Skip to content

Commit

Permalink
changing VersionError to CommandExitStatusError
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgruebl committed Jul 17, 2023
1 parent 1a01231 commit 0d276f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tesseract/command.rs
Expand Up @@ -57,10 +57,10 @@ pub(crate) fn run_tesseract_command(command: &mut Command) -> TessResult<String>
let out = String::from_utf8(output.stdout).unwrap();
let err = String::from_utf8(output.stderr).unwrap();
let status = output.status;

match status.code() {
Some(0) => Ok(out),
_ => Err(TessError::VersionError(err)),
_ => Err(TessError::CommandExitStatusError(status.to_string(), err)),
}
}

Expand Down

0 comments on commit 0d276f4

Please sign in to comment.