Handling HTTP errors
Dependencies
- [2]
GYXIF25TProper parsing of URLs - [3]
367UBQ6KForwarding SSH stderr, and progress bar for push - [*]
FBXYP7QMForgot to add remote::http
Change contents
- replacement in pijul/src/remote/http.rs at line 194
self.clientlet resp = self.client - edit in pijul/src/remote/http.rs at line 202
let stat = resp.status();if !stat.is_success() {let body = resp.text().await?;if !body.is_empty() {bail!("The HTTP server returned an error: {}", body)} else {if let Some(reason) = stat.canonical_reason() {bail!("HTTP Error {}: {}", stat.as_u16(), reason)} else {bail!("HTTP Error {}", stat.as_u16())}}}