fix: remove field name collision on esplora error for JVM
This commit is contained in:
parent
a35fdaee61
commit
aee84f9634
@ -35,7 +35,7 @@ interface PersistenceError {
|
|||||||
[Error]
|
[Error]
|
||||||
interface EsploraError {
|
interface EsploraError {
|
||||||
Minreq(string error_message);
|
Minreq(string error_message);
|
||||||
HttpResponse(u16 status, string message);
|
HttpResponse(u16 status, string error_message);
|
||||||
Parsing(string error_message);
|
Parsing(string error_message);
|
||||||
StatusCode(string error_message);
|
StatusCode(string error_message);
|
||||||
BitcoinEncoding(string error_message);
|
BitcoinEncoding(string error_message);
|
||||||
|
@ -73,8 +73,8 @@ pub enum EsploraError {
|
|||||||
#[error("minreq error: {error_message}")]
|
#[error("minreq error: {error_message}")]
|
||||||
Minreq { error_message: String },
|
Minreq { error_message: String },
|
||||||
|
|
||||||
#[error("http error with status code {status} and message {message}")]
|
#[error("http error with status code {status} and message {error_message}")]
|
||||||
HttpResponse { status: u16, message: String },
|
HttpResponse { status: u16, error_message: String },
|
||||||
|
|
||||||
#[error("parsing error: {error_message}")]
|
#[error("parsing error: {error_message}")]
|
||||||
Parsing { error_message: String },
|
Parsing { error_message: String },
|
||||||
@ -385,7 +385,7 @@ impl From<BdkEsploraError> for EsploraError {
|
|||||||
error_message: e.to_string(),
|
error_message: e.to_string(),
|
||||||
},
|
},
|
||||||
BdkEsploraError::HttpResponse { status, message } => {
|
BdkEsploraError::HttpResponse { status, message } => {
|
||||||
EsploraError::HttpResponse { status, message }
|
EsploraError::HttpResponse { status: status, error_message: message }
|
||||||
}
|
}
|
||||||
BdkEsploraError::Parsing(e) => EsploraError::Parsing {
|
BdkEsploraError::Parsing(e) => EsploraError::Parsing {
|
||||||
error_message: e.to_string(),
|
error_message: e.to_string(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user