Files
nym/common/commands/src/validator/signature/errors.rs
T
Jędrzej Stuczyński 97b01db23e Chore/more error macros (#2686)
* cleaned up MixProcessingError

* Added Error impl to (hopefully) all error enums in the codebase

* Replaced all occurences of error("{0}") with error(transparent)

* Changelog entry
2022-12-13 17:42:11 +00:00

17 lines
402 B
Rust

// Copyright 2022 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: Apache-2.0
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Errors {
#[error("account id does not match")]
AccountIdError,
#[error("signature error - {0}")]
SignatureError(#[from] k256::ecdsa::signature::Error),
#[error(transparent)]
CosmrsError(#[from] cosmrs::ErrorReport),
}