Properly include the non-JSON HTTP result in Monero's RpcError

The CI for 695d1f0ecf actually errored with a
non-JSON response, hence the value in this.
This commit is contained in:
Luke Parker
2023-11-29 00:36:58 -05:00
parent f0ff3a18d2
commit 51bb434239
3 changed files with 30 additions and 22 deletions

View File

@@ -234,7 +234,7 @@ impl SpendableOutput {
.await?
.get(usize::from(self.output.absolute.o))
.ok_or(RpcError::InvalidNode(
"node returned output indexes didn't include an index for this output",
"node returned output indexes didn't include an index for this output".to_string(),
))?;
Ok(())
}