feat(git): Remove the failure code from the error type
Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -207,7 +207,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "git"
|
name = "git"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"command-with-spinner",
|
"command-with-spinner",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "git"
|
name = "git"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
|
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
@@ -1,9 +1,6 @@
|
|||||||
/// Git operations error type
|
/// Git operations error type
|
||||||
#[derive(Debug, thiserror::Error)]
|
#[derive(Debug, thiserror::Error)]
|
||||||
pub enum GitError {
|
pub enum GitError {
|
||||||
#[error("Command failed with exit code: {0}")]
|
|
||||||
Failed(i32),
|
|
||||||
|
|
||||||
#[error("Command failed without exit code")]
|
#[error("Command failed without exit code")]
|
||||||
FailedNoCode,
|
FailedNoCode,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user