dfx_core/error/
root_key.rs

1
2
3
4
5
6
7
8
9
10
11
use ic_agent;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum FetchRootKeyError {
    #[error(transparent)]
    AgentError(#[from] ic_agent::AgentError),

    #[error("This command only runs on local instances. Cannot run this on the real IC.")]
    MustNotFetchRootKeyOnMainnet,
}