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
This commit is contained in:
Marshall Bowers 2025-05-12 11:21:37 +02:00 committed by GitHub
parent 83319c8a6d
commit 58ed81b698
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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:?}")))
}
}