Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

extension_host: Include more details about error messages (#30543)

Marshall Bowers58ed81b698ce
diff --git a/crates/extension_host/src/wasm_host/wit.rs b/crates/extension_host/src/wasm_host/wit.rs
index acbfaa54e4b..e48d669a4e1 100644
--- a/crates/extension_host/src/wasm_host/wit.rs
+++ b/crates/extension_host/src/wasm_host/wit.rs
@@ -806,6 +806,6 @@ trait ToWasmtimeResult<T> {
impl<T> ToWasmtimeResult<T> for Result<T> {
fn to_wasmtime_result(self) -> wasmtime::Result<Result<T, String>> {
- Ok(self.map_err(|error| error.to_string()))
+ Ok(self.map_err(|error| format!("{error:?}")))
}
}