Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Log dropped anyhow errors #968

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion mutiny-wasm/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use bitcoin::Network;
use lightning_invoice::ParseOrSemanticError;
use log::error;
use mutiny_core::error::{MutinyError, MutinyStorageError};
use thiserror::Error;
use wasm_bindgen::JsValue;
Expand Down Expand Up @@ -204,7 +205,10 @@ impl From<MutinyError> for MutinyJsError {
MutinyError::BitcoinPriceError => MutinyJsError::BitcoinPriceError,
MutinyError::IncorrectPassword => MutinyJsError::IncorrectPassword,
MutinyError::SamePassword => MutinyJsError::SamePassword,
MutinyError::Other(_) => MutinyJsError::UnknownError,
MutinyError::Other(e) => {
error!("Got unhandled error: {e}");
MutinyJsError::UnknownError
}
MutinyError::SubscriptionClientNotConfigured => {
MutinyJsError::SubscriptionClientNotConfigured
}
Expand Down