diff --git a/bindings/wasm/src/client.rs b/bindings/wasm/src/client.rs index ae951a51fe..cd5176b1b6 100644 --- a/bindings/wasm/src/client.rs +++ b/bindings/wasm/src/client.rs @@ -364,7 +364,7 @@ pub(crate) async fn build_store( }; if encryption_key.is_some() { - tracing::warn!("encryption_key is not supported in WASM and will be ignored"); + return Err(JsError::new("encryption_key is not supported in WASM builds")); } let db = WasmDb::new(&storage_option).await?;