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:
Koute authored and GitHub committed 2022-04-08 10:26:38 +02:00
1 parent ecd42d5408
commit ef4e64c641
4 files changed
+57 -30

No files matched your search

+2 -2
View File
@@ -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,