fix: Display for out.status is "exit code (num)"

This commit is contained in:
DarkCat09 2025-03-26 15:19:37 +04:00
parent 4784c5a370
commit 555b2d4732
Signed by: DarkCat09
SSH key fingerprint: SHA256:SnH1iYY/ogxxRmt1I6piy+aVUUzrOWvfksQWfhZ8JUM

View file

@ -70,7 +70,7 @@ async fn ping() -> Result<impl Responder> {
Ok(format!(
"exited with {}\n\nstdout:\n{}\n----\n\nstderr:\n{}",
out.status,
out.status.code().unwrap_or(-1),
String::from_utf8_lossy(&out.stdout),
String::from_utf8_lossy(&out.stderr),
))