MCPcopy Index your code
hub / github.com/dashed/git-chain / ErrorExt

Interface ErrorExt

src/error.rs:4–9  ·  view source on GitHub ↗

For API consistency, we create our own Error variants

Source from the content-addressed store, hash-verified

2
3// For API consistency, we create our own Error variants
4pub trait ErrorExt {
5 #[allow(dead_code)]
6 fn from_str(message: &str) -> Self;
7 fn merge_conflict(branch: String, upstream: String, message: Option<String>) -> Self;
8 fn git_command_failed(command: String, status: i32, stdout: String, stderr: String) -> Self;
9}
10
11impl ErrorExt for Error {
12 fn from_str(message: &str) -> Self {

Callers

nothing calls this directly

Implementers 1

error.rssrc/error.rs

Calls

no outgoing calls

Tested by

no test coverage detected