Skip to content

Commit c48b14d

Browse files
committed
rename
1 parent 77774e5 commit c48b14d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/catalog/rest/src/catalog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

crates/iceberg/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

6868
impl 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
}

0 commit comments

Comments
 (0)