Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Better error messages. #3835

Merged
merged 2 commits into from
Sep 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions node/network/protocol/src/request_response/outgoing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down