Update error.rs

This commit is contained in:
Jonas Kruckenberg 2023-02-09 11:48:06 +01:00
parent 347dd0aca7
commit 904450cffe

View file

@ -3,12 +3,12 @@ use wasm_bindgen::JsValue;
#[derive(Clone, Eq, PartialEq, Debug, thiserror::Error)] #[derive(Clone, Eq, PartialEq, Debug, thiserror::Error)]
pub enum Error { pub enum Error {
#[error("TODO.")] #[error("JS Binding: {0}")]
Binding(String), Binding(String),
#[error("TODO.")] #[error("JSON: {0}")]
Serde(String), Serde(String),
#[cfg(any(feature = "event", feature = "window"))] #[cfg(any(feature = "event", feature = "window"))]
#[error("TODO.")] #[error("Oneshot cancelled: {0}")]
OneshotCanceled(#[from] futures::channel::oneshot::Canceled) OneshotCanceled(#[from] futures::channel::oneshot::Canceled)
} }