refactor: panic with unresolvable table IDs
Include the table ID in the panic message.
@@ -48,7 +48,12 @@ impl TableNameResolver {
.tables()
.get_by_id(table_id)
.await?
- .expect("resolving table name for non-existent table id")
+ .unwrap_or_else(|| {
+ panic!(
+ "resolving table name for non-existent table id {}",
+ table_id
+ )
+ })
.name
.into();
