Error

Type Alias Error 

Source
pub type Error = Error;
Expand description

The crate’s error type.

Aliased Type§

pub enum Error {
    BadUrl(String),
    LoadError(PathBuf),
    PullFailed(PathBuf, String),
    NormalizationFailure(String, String),
    NotFound(PathBuf),
    Unresolvable(String),
    FileEscapesRoot(PathBuf, String),
}

Variants§

§

BadUrl(String)

Location reference was not a URL or package reference

§

LoadError(PathBuf)

Could not load file.

§

PullFailed(PathBuf, String)

Remote fetch failed.

§

NormalizationFailure(String, String)

Local path normalization failed.

§

NotFound(PathBuf)

Could not find file or directory.

§

Unresolvable(String)

Could not resolve a location to a filesystem path or an OCI reference.

§

FileEscapesRoot(PathBuf, String)

Error returned when a file path does not reside in a target directory.