Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Log more info about failed file uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Jun 11, 2021
1 parent a3ca6f7 commit 76c59fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,12 @@ async fn upload_file(
.body(body)
.send()
.await?;
ensure!(res.status().is_success(), "failed to upload file");
ensure!(
res.status().is_success(),
"failed to upload file: {}\n{:?}",
res.status(),
res.text().await
);

let upload_time = start.elapsed();
println!(" Finished in {:.3}s", upload_time.as_secs_f64());
Expand Down

0 comments on commit 76c59fb

Please sign in to comment.