feat(lib/git): expand graphql error variants
ZhenYi committed
Modified lib/git/src/graphql/error.rs lib/git/src/graphql/error.rs +1 −0 View lib/git/src/graphql/error.rs
@@ -6,6 +6,7 @@
66fn code_for(err: &GitError) -> &'static str {
77 match err {
88 GitError::NotFound => "NOT_FOUND",
9 GitError::Unauthorized => "UNAUTHORIZED",
910 GitError::Forbidden => "FORBIDDEN",
1011 GitError::Conflict(_) => "CONFLICT",
1112 GitError::InvalidArgument(_) => "INVALID_ARGUMENT",