File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -752,7 +752,7 @@ impl Catalog for RestCatalog {
752
752
}
753
753
StatusCode :: CONFLICT => {
754
754
return Err ( Error :: new (
755
- ErrorKind :: CommitFailed ,
755
+ ErrorKind :: CommitConflict ,
756
756
"CommitFailedException, one or more requirements failed. The client may retry." ,
757
757
) ) ;
758
758
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ pub enum ErrorKind {
62
62
FeatureUnsupported ,
63
63
64
64
/// Commit failed due to outdated metadata
65
- CommitFailed ,
65
+ CommitConflict ,
66
66
}
67
67
68
68
impl ErrorKind {
@@ -83,7 +83,7 @@ impl From<ErrorKind> for &'static str {
83
83
ErrorKind :: NamespaceAlreadyExists => "NamespaceAlreadyExists" ,
84
84
ErrorKind :: NamespaceNotFound => "NamespaceNotFound" ,
85
85
ErrorKind :: PreconditionFailed => "PreconditionFailed" ,
86
- ErrorKind :: CommitFailed => "CommitFailed" ,
86
+ ErrorKind :: CommitConflict => "CommitFailed" ,
87
87
}
88
88
}
89
89
}
You can’t perform that action at this time.
0 commit comments