From 58ed81b698cef161b8627fe1bee3a7a1a9286281 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 12 May 2025 11:21:37 +0200 Subject: [PATCH] extension_host: Include more details about error messages (#30543) This PR makes it so the error messages surfaced to extensions will contain more information. Supersedes https://github.com/zed-industries/zed/pull/28491. Release Notes: - N/A --- crates/extension_host/src/wasm_host/wit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/extension_host/src/wasm_host/wit.rs b/crates/extension_host/src/wasm_host/wit.rs index acbfaa54e4b6ce47650b58fcc5f1659afceb5311..e48d669a4e1b50b191dba030852fc9527654b013 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 { impl ToWasmtimeResult for Result { fn to_wasmtime_result(self) -> wasmtime::Result> { - Ok(self.map_err(|error| error.to_string())) + Ok(self.map_err(|error| format!("{error:?}"))) } }