1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-17 11:29:37 +00:00

Remove JavaScript error from non-JavaScript builds.

This commit is contained in:
Nolan Darilek 2020-06-02 14:57:21 -05:00
parent c24c1d3230
commit d46b886875

View File

@ -37,6 +37,7 @@ pub enum Error {
IO(#[from] std::io::Error),
#[error("Value not received")]
NoneError,
#[cfg(target_arch = "wasm32")]
#[error("JavaScript error: [0])]")]
JavaScriptError(wasm_bindgen::JsValue),
#[cfg(windows)]