mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 21:37:56 +00:00
Better error messages. (#3835)
* Better error messages. Right now, logged messages are hardly useful. Together with https://github.com/paritytech/substrate/pull/9768, this should help with debugging. * cargo fmt
This commit is contained in:
@@ -82,11 +82,11 @@ pub type ResponseSender = oneshot::Sender<Result<Vec<u8>, network::RequestFailur
|
||||
#[derive(Debug, Error)]
|
||||
pub enum RequestError {
|
||||
/// Response could not be decoded.
|
||||
#[error("Response could not be decoded")]
|
||||
#[error("Response could not be decoded: {0}")]
|
||||
InvalidResponse(#[source] DecodingError),
|
||||
|
||||
/// Some error in substrate/libp2p happened.
|
||||
#[error("Some network error occurred")]
|
||||
#[error("{0}")]
|
||||
NetworkError(#[source] network::RequestFailure),
|
||||
|
||||
/// Response got canceled by networking.
|
||||
|
||||
Reference in New Issue
Block a user