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
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion runtime/common/src/elections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ impl pallet_election_provider_multi_phase::BenchmarkingConfig for BenchmarkConfi
pub type OnOnChainAccuracy = sp_runtime::Perbill;

/// The election provider of the genesis
pub type GenesisElectionOf<T> = frame_election_provider_support::onchain::OnChainSequentialPhragmen<T>;
pub type GenesisElectionOf<T> =
frame_election_provider_support::onchain::OnChainSequentialPhragmen<T>;

/// Maximum number of iterations for balancing that will be executed in the embedded miner of
/// pallet-election-provider-multi-phase.
Expand Down