Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Print Asset Error with the whole context (#61482)
Earthgamesdc682ef12096
diff --git a/crates/gpui/src/asset_cache.rs b/crates/gpui/src/asset_cache.rsindex bab0b2682ef..bd1271541ab 100644--- a/crates/gpui/src/asset_cache.rs+++ b/crates/gpui/src/asset_cache.rs@@ -61,7 +61,7 @@ impl<T, R, E> Asset for AssetLogger<T>whereT: Asset<Output = Result<R, E>>,R: Clone + Send,- E: Clone + Send + std::fmt::Display,+ E: Clone + Send + Debug,{type Source = T::Source;@@ -72,7 +72,7 @@ wherecx: &mut App,) -> impl Future<Output = Self::Output> + Send + 'static {let load = T::load(source, cx);- load.inspect_err(|e| log::error!("Failed to load asset: {}", e))+ load.inspect_err(|e| log::error!("Failed to load asset: {:?}", e))}}