Skip to content

Commit 2e57272

Browse files
authored
Make WellKnownError public (payjoin#598)
Well known errors are required for ffi bindings and should be public
2 parents 6e5c7c8 + 5e871ac commit 2e57272

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

payjoin/src/send/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ impl fmt::Debug for ResponseError {
364364
}
365365

366366
#[derive(Debug, Clone, PartialEq, Eq)]
367+
#[non_exhaustive]
367368
pub enum WellKnownError {
368369
Unavailable(String),
369370
NotEnoughMoney(String),

payjoin/src/send/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::str::FromStr;
1313

1414
use bitcoin::psbt::Psbt;
1515
use bitcoin::{Amount, FeeRate, Script, ScriptBuf, TxOut, Weight};
16-
pub use error::{BuildSenderError, ResponseError, ValidationError};
16+
pub use error::{BuildSenderError, ResponseError, ValidationError, WellKnownError};
1717
pub(crate) use error::{InternalBuildSenderError, InternalProposalError, InternalValidationError};
1818
use url::Url;
1919

0 commit comments

Comments
 (0)