diff --git a/crates/napi/src/mdx.rs b/crates/napi/src/mdx.rs index b518d6c807775..4fcf76616685e 100644 --- a/crates/napi/src/mdx.rs +++ b/crates/napi/src/mdx.rs @@ -14,7 +14,7 @@ impl Task for MdxCompileTask { let options: Options = serde_json::from_slice(&self.option)?; compile(&self.input, &options) - .map_err(|err| napi::Error::new(Status::GenericFailure, format!("{:?}", err))) + .map_err(|err| napi::Error::new(Status::GenericFailure, err.to_string())) } fn resolve(&mut self, _env: Env, output: Self::Output) -> napi::Result {