mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Improve error handling in approval voting block import (#5283)
* Print out original the runtime API error * Improved error handling in approval voting block import * Fix test * Update comment
This commit is contained in:
@@ -21,8 +21,8 @@ use crate::JaegerError;
|
||||
/// A description of an error causing the runtime API request to be unservable.
|
||||
#[derive(thiserror::Error, Debug, Clone)]
|
||||
pub enum RuntimeApiError {
|
||||
/// The runtime API cannot be executed due to a
|
||||
#[error("The runtime API '{runtime_api_name}' cannot be executed")]
|
||||
/// The runtime API cannot be executed due to a runtime error.
|
||||
#[error("The runtime API '{runtime_api_name}' cannot be executed: {source}")]
|
||||
Execution {
|
||||
/// The runtime API being called
|
||||
runtime_api_name: &'static str,
|
||||
|
||||
Reference in New Issue
Block a user