diff --git a/client/src/request.rs b/client/src/request.rs index 33716120..03fef476 100644 --- a/client/src/request.rs +++ b/client/src/request.rs @@ -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? + ))) } }