Skip to content

Commit 1bc8fc4

Browse files
committed
address pr comments
- updated error message
1 parent 6470f34 commit 1bc8fc4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crates/catalog/glue/src/catalog.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -742,18 +742,15 @@ impl Catalog for GlueCatalog {
742742
match error {
743743
CreateTableError::EntityNotFoundException(_) => Error::new(
744744
ErrorKind::NamespaceNotFound,
745-
format!("Database {} does not exist", db_name),
745+
format!("Database {db_name} does not exist"),
746746
),
747747
CreateTableError::AlreadyExistsException(_) => Error::new(
748748
ErrorKind::TableAlreadyExists,
749-
format!("Table {}.{} already exists", db_name, table_name),
749+
format!("Table {table_ident} already exists"),
750750
),
751751
_ => Error::new(
752752
ErrorKind::Unexpected,
753-
format!(
754-
"Failed to register table {}.{} due to AWS SDK error",
755-
db_name, table_name
756-
),
753+
format!("Failed to register table {table_ident} due to AWS SDK error"),
757754
),
758755
}
759756
.with_source(anyhow!("aws sdk error: {:?}", error))

0 commit comments

Comments
 (0)