changed error on executing file

This commit is contained in:
2024-02-18 20:28:18 +01:00
parent ea905dfc25
commit 6a5141bca3

View File

@@ -16,7 +16,7 @@ async fn index(name: web::Path<String>) -> Result<impl Responder> {
let name = name.to_string();
if name == "penis" {
sleep_command.status().expect("failed to send command");
sleep_command.status().expect("failed to execute file");
}
Ok(web::Json(obj))
}