changed error on executing file
This commit is contained in:
@@ -16,7 +16,7 @@ async fn index(name: web::Path<String>) -> Result<impl Responder> {
|
|||||||
|
|
||||||
let name = name.to_string();
|
let name = name.to_string();
|
||||||
if name == "penis" {
|
if name == "penis" {
|
||||||
sleep_command.status().expect("failed to send command");
|
sleep_command.status().expect("failed to execute file");
|
||||||
}
|
}
|
||||||
Ok(web::Json(obj))
|
Ok(web::Json(obj))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user