We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
get_table_rows
1 parent d701cd9 commit 1f101aaCopy full SHA for 1f101aa
crates/antelope/src/api/v1/chain.rs
@@ -297,7 +297,11 @@ impl<T: Provider> ChainAPI<T> {
297
298
let response = match result.await {
299
Ok(response) => response,
300
- Err(_) => return Err(ClientError::NETWORK("Failed to get table rows".into())),
+ Err(error) => {
301
+ return Err(ClientError::NETWORK(
302
+ format!("Failed to get table rows, reason: {}", error).into(),
303
+ ))
304
+ }
305
};
306
let json: Value = serde_json::from_str(response.as_str()).unwrap();
307
let response_obj = JSONObject::new(json);
0 commit comments