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 {
752752 }
753753 StatusCode :: CONFLICT => {
754754 return Err ( Error :: new (
755- ErrorKind :: CommitFailed ,
755+ ErrorKind :: CommitConflict ,
756756 "CommitFailedException, one or more requirements failed. The client may retry." ,
757757 ) ) ;
758758 }
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ pub enum ErrorKind {
6262 FeatureUnsupported ,
6363
6464 /// Commit failed due to outdated metadata
65- CommitFailed ,
65+ CommitConflict ,
6666}
6767
6868impl ErrorKind {
@@ -83,7 +83,7 @@ impl From<ErrorKind> for &'static str {
8383 ErrorKind :: NamespaceAlreadyExists => "NamespaceAlreadyExists" ,
8484 ErrorKind :: NamespaceNotFound => "NamespaceNotFound" ,
8585 ErrorKind :: PreconditionFailed => "PreconditionFailed" ,
86- ErrorKind :: CommitFailed => "CommitFailed" ,
86+ ErrorKind :: CommitConflict => "CommitFailed" ,
8787 }
8888 }
8989}
You can’t perform that action at this time.
0 commit comments