diff --git a/lib/wasix/src/runtime/resolver/wapm_source.rs b/lib/wasix/src/runtime/resolver/wapm_source.rs index 74ea8d4c1ba..e432f2ef864 100644 --- a/lib/wasix/src/runtime/resolver/wapm_source.rs +++ b/lib/wasix/src/runtime/resolver/wapm_source.rs @@ -87,6 +87,21 @@ impl WapmSource { if !response.is_ok() { let url = &self.registry_endpoint; let status = response.status; + + let body = if let Some(body) = &response.body { + String::from_utf8_lossy(body).into_owned() + } else { + "".to_string() + }; + + tracing::warn!( + %url, + %status, + package=%package_name, + %body, + "failed to query package info from registry" + ); + anyhow::bail!("\"{url}\" replied with {status}"); }