Update error.rs
This commit is contained in:
parent
347dd0aca7
commit
904450cffe
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue