payjoin-cli: surface bitcoin RPC error instead of generic message#1259
payjoin-cli: surface bitcoin RPC error instead of generic message#1259abhinavraajput wants to merge 1 commit intopayjoin:masterfrom
Conversation
There was a problem hiding this comment.
Always nice to see errors getting propagated further but I am skeptical if this is the relevant line in the case of this issue. Notice that the "Caused by:" return states a 500 error where this should never be able to deviate from the return string in the diff.
|
@benalleng Thanks for the review! That makes sense — I agree this change may not be the layer where the |
|
@abhinavraajput i think the work required to fix this starts from looking at the upstream code and work down from there |
|
@zealsham Thanks, that’s helpful. I’ll take a look at the upstream error handling (e.g. where the |
Pull Request Checklist
Please confirm the following before requesting review:
AI
in the body of this PR.
Fixes #1258
This PR improves error handling in payjoin-cli by propagating the
underlying Bitcoin RPC error message instead of replacing it with
a generic error. This allows users to see actionable RPC errors
such as unloaded wallets.
AI Assistance Disclosure:
I used ChatGPT to understand the codebase and reason about the fix.
The implementation was written and reviewed manually.