Skip to content

Commit

Permalink
Include id in error for component not found (#32349)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 34586d6a15889f91044f953494889cc90bca7758
  • Loading branch information
emmaling27 authored and Convex, Inc. committed Dec 17, 2024
1 parent 0d5402d commit 7e9aa71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/database/src/bootstrap_model/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ impl<'a, RT: Runtime> BootstrapComponentsModel<'a, RT> {
let component = self
.load_component(id)
.await?
.context("Component not found")?
.context(format!(
"Component not found for ComponentId {:?}",
id.serialize_to_string()
))?
.into_value();
let args = match component.component_type {
ComponentType::App => anyhow::bail!(ErrorMetadata::bad_request(
Expand Down

0 comments on commit 7e9aa71

Please sign in to comment.