Fix some typos for client (#968)

* chore: fix typos for consensus

* chore: fix typos for RelayChainError
This commit is contained in:
yjh authored and GitHub committed 2022-02-09 11:20:00 +01:00
1 parent 74472ea085
commit e4576e541d
6 files changed
+12 -12

No files matched your search

+3 -3
View File
@@ -36,7 +36,7 @@ pub type RelayChainResult<T> = Result<T, RelayChainError>;
#[derive(thiserror::Error, Debug)]
pub enum RelayChainError {
#[error("Error occured while calling relay chain runtime: {0:?}")]
#[error("Error occurred while calling relay chain runtime: {0:?}")]
ApiError(#[from] ApiError),
#[error("Timeout while waiting for relay-chain block `{0}` to be imported.")]
WaitTimeout(PHash),
@@ -46,9 +46,9 @@ pub enum RelayChainError {
WaitBlockchainError(PHash, sp_blockchain::Error),
#[error("Blockchain returned an error: {0:?}")]
BlockchainError(#[from] sp_blockchain::Error),
#[error("State machine error occured: {0:?}")]
#[error("State machine error occurred: {0:?}")]
StateMachineError(Box<dyn sp_state_machine::Error>),
#[error("Unspecified error occured: {0:?}")]
#[error("Unspecified error occurred: {0:?}")]
GenericError(String),
}