Skip to content

Commit

Permalink
Add http status code to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonxslays committed Nov 27, 2021
1 parent 5171c71 commit 66a0741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl Client {
version: String::new(),
run: exec_result.clone(),
compile: None,
message: Some("Error: ".to_string() + &data.text().await?),
message: Some(format!("{}: {}", data.status(), data.text().await?)),
};

Ok(exec_response)
Expand Down

0 comments on commit 66a0741

Please sign in to comment.