From 34e15c70cad89695cf37044b034456d3fad779f3 Mon Sep 17 00:00:00 2001 From: Harsh Modi Date: Wed, 10 Jan 2024 12:39:57 -0800 Subject: [PATCH] Log the target that is not found --- blade/bep/target.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blade/bep/target.rs b/blade/bep/target.rs index 5b9e286..6c4d400 100644 --- a/blade/bep/target.rs +++ b/blade/bep/target.rs @@ -85,7 +85,7 @@ impl crate::EventHandler for Handler { match event.payload.as_ref() { Some(build_event_stream::build_event::Payload::Configured(target)) => { let mut db = db_mgr.get().context("failed to get db handle")?; - let label = target_label(event).ok_or(anyhow::anyhow!("target not found"))?; + let label = target_label(event).ok_or(anyhow::anyhow!("target not found: {event:#?}"))?; db.upsert_target( invocation_id, &state::Target {