Skip to content

Commit

Permalink
add why the api request failed
Browse files Browse the repository at this point in the history
  • Loading branch information
dferendo committed Mar 26, 2024
1 parent 9df6a9d commit 6cd272a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,10 @@ impl SuccinctClient {
Ok(response.request_id)
} else {
error!("Request failed!");
Err(Error::msg("Failed to submit request to Succinct X API."))
Err(Error::msg(format!(
"Failed to submit request to Succinct X API, error {:?}",
res.error_for_status()?.text().await?
)))
}
}

Expand Down

0 comments on commit 6cd272a

Please sign in to comment.