pub enum Error {
Show 17 variants
Fetch(Error),
TimeoutExceeded {
seconds: u64,
},
WorkspaceError(Error),
LFSImporter(Error),
Command(Error),
Io {
command: String,
},
InvalidPath(String),
ParseError(ParseError),
Libgit2Error(Error),
AllRefspecsFailed {
refs: PushRefs,
n_attempted: i64,
},
SomeRefspecsFailed {
refs: PushRefs,
n_failed: i64,
},
InvalidGlobPattern {
pattern: String,
error: String,
},
RawFiles(Error),
NoMatchingRefspecs,
CannotParsePushOutput(String),
Sha256sumsNotSpecified(String),
InvalidIgnorePattern(String),
}
Expand description
Top-level error type containing all possible errors during a mirroring operation.
Variants§
Fetch(Error)
The upstream was a git repo. There was an error pulling from the remote.
TimeoutExceeded
Indicates that the job exceeded the time it was allocated in the lorry configuration
WorkspaceError(Error)
An error occurred that originated in the workspace module.
LFSImporter(Error)
An error occured when importing raw files into a working directory.
Command(Error)
Generic command execution error not specific to any particular module.
Io
Generic IO error
InvalidPath(String)
Tried to access a repository on the local filesystem as the downstream, but the given path is not a valid one.
ParseError(ParseError)
Problem parsing a downstream git url
Libgit2Error(Error)
Generic Libgit2 failure not specific to any particular module.
AllRefspecsFailed
Indicates that 100% of the desired refs failed to push to the downstream.
SomeRefspecsFailed
Indicates some but not all of the desired refspecs were not able to be pushed downstream for some reason.
InvalidGlobPattern
Indicates a refspec was malformed
RawFiles(Error)
An error related to raw-file management occurred.
NoMatchingRefspecs
Indicates none of the refs in the mirror configuration matches those that were available in the repository.
CannotParsePushOutput(String)
Indicates that a push command failed and we could not understand the the reason why. This may be due to a downstream server error.
Sha256sumsNotSpecified(String)
Indicates that the server requires Sha256sum values for all raw-files but the file did not have one specified.
InvalidIgnorePattern(String)
Indicates the ignore pattern was not a valid regular expression