pub enum Error {
Show 36 variants
PathAlreadyExists(Box<Path>),
GitRepositoryIsNotInACleanState,
UnsupportedVersion(i64),
PubKeyMismatch,
UserConfigNotInitialized,
UserConfigAlreadyExists,
UserConfigLoadError(Box<(PathBuf, Error)>),
NoHomeDirectory,
IdLoadError(Box<(PathBuf, Error)>),
IDFileNotFound,
CouldNotCloneGitHttpsURL(Box<(String, String)>),
NoIdsGiven,
IncorrectPassphrase,
CurrentIDNotSet,
IDNotSpecifiedAndCurrentIDNotSet,
OriginHasNoURL(Box<Path>),
GitUrlNotConfigured,
ErrorIteratingLocalProofStore(Box<(PathBuf, String)>),
FileNotCurrent(Box<Path>),
PackageConfigNotInitialized,
PathNotInStageRootPath,
GitEntryWithoutAPath,
YAML(Error),
CBOR(Error),
PackageDirNotFound(PackageDirNotFound),
Cancelled(CancelledError),
Data(Error),
Passphrase(Error),
ReviewActivity(Box<YAMLIOError>),
UserConfigParse(Error),
Digest(DigestError),
Git(Error),
IO(Error),
CrateSourceSanitizationError(Error),
FileWrite(Error, PathBuf),
Id(IdError),
}
Expand description
Failures that can happen in this library
Variants§
PathAlreadyExists(Box<Path>)
Trying to init a directory that is already there
GitRepositoryIsNotInACleanState
There are manual modifications in the git repo. Commit or reset them?
UnsupportedVersion(i64)
Found data from the future. Your version of crev is too old.
PubKeyMismatch
Your crev-id changed unexpectedly
UserConfigNotInitialized
You need to make a crev Id to perform most operations
UserConfigAlreadyExists
Use auto_create_or_open
or fix potentially messed up config directory
UserConfigLoadError(Box<(PathBuf, Error)>)
User config loading error
NoHomeDirectory
You’ve sandboxed too hard? We need to run Cargo
IdLoadError(Box<(PathBuf, Error)>)
This stores your private key
IDFileNotFound
Create a new Id
CouldNotCloneGitHttpsURL(Box<(String, String)>)
Crev repos must be public
NoIdsGiven
We don’t support anonymous reviews
IncorrectPassphrase
There’s no password reset. If you don’t remember it, start over!
CurrentIDNotSet
crev has a concept of a default/current Id
IDNotSpecifiedAndCurrentIDNotSet
crev has a concept of a default/current Id
OriginHasNoURL(Box<Path>)
crev uses git checkouts, and needs to know their URLs. Delete the repo and try again.
GitUrlNotConfigured
crev created a dummy Id for you, but you still need to configure it
ErrorIteratingLocalProofStore(Box<(PathBuf, String)>)
Error iterating local db
FileNotCurrent(Box<Path>)
blake_hash mismatch
PackageConfigNotInitialized
Needs config.yaml
PathNotInStageRootPath
Wrong path given to git
GitEntryWithoutAPath
Git is cursed
YAML(Error)
Sorry about YAML syntax
CBOR(Error)
Used for staging temp file
PackageDirNotFound(PackageDirNotFound)
Cancelled(CancelledError)
Data(Error)
See crev_data::Error
Passphrase(Error)
See argon2::Error
ReviewActivity(Box<YAMLIOError>)
YAML ;(
UserConfigParse(Error)
YAML ;(
Digest(DigestError)
Git(Error)
Misc problems with git repos
IO(Error)
Misc problems with file I/O
CrateSourceSanitizationError(Error)
crev open makes cargo projects that don’t run the code
FileWrite(Error, PathBuf)
Misc problems with file I/O
Id(IdError)
See IdError