dfx_core/error/
load_dfx_config.rs1use crate::error::config::ApplyExtensionCanisterTypesError;
2use crate::error::fs::{CanonicalizePathError, ReadFileError};
3use std::path::PathBuf;
4use thiserror::Error;
5
6#[derive(Error, Debug)]
7pub enum LoadDfxConfigError {
8 #[error(transparent)]
9 ApplyExtensionCanisterTypesError(#[from] ApplyExtensionCanisterTypesError),
10
11 #[error("Failed to deserialize json from {0}")]
12 DeserializeValueFailed(Box<PathBuf>, #[source] serde_json::Error),
13
14 #[error("failed to resolve config path")]
15 ResolveConfigPath(#[source] CanonicalizePathError),
16
17 #[error("Failed to load dfx configuration")]
18 ReadFile(#[from] ReadFileError),
19
20 #[error("Failed to determine current working dir")]
21 DetermineCurrentWorkingDirFailed(#[source] std::io::Error),
22}