Skip to content

Commit d786670

Browse files
committed
fix(upload): catch server error as well as client in upload error handling
1 parent 20f0fd3 commit d786670

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/run/uploader/upload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async fn retrieve_upload_data(
4444

4545
match response {
4646
Ok(response) => {
47-
if response.status().is_client_error() {
47+
if !response.status().is_success() {
4848
let status = response.status();
4949
let text = response.text().await?;
5050
let mut error_message = serde_json::from_str::<UploadError>(&text)

0 commit comments

Comments
 (0)