Unverified Commit 68fc65e4 authored by Robert Klotzner's avatar Robert Klotzner Committed by GitHub
Browse files

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
parent 143a3087
Pipeline #157064 passed with stages
in 42 minutes and 58 seconds
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment