Skip to content

Commit

Permalink
Merge pull request ProvableHQ#3345 from eqlabs/fix/empty_error
Browse files Browse the repository at this point in the history
[fix] CLI error handling message
  • Loading branch information
zosorock authored Oct 22, 2024
2 parents 27d9a98 + 628c6e9 commit 617584b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/commands/developer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ impl Developer {
Ok(response) => response.into_json().map_err(|err| err.into()),
Err(err) => match err {
ureq::Error::Status(_status, response) => {
bail!(response.into_string().unwrap_or("Response too large!".to_owned()))
// Debug formatting displays more useful info, especially if the response body is empty.
bail!("Failed to fetch program {program_id}: {response:?}")
}
err => bail!(err),
},
Expand Down

0 comments on commit 617584b

Please sign in to comment.