splice: Clean up error messages for RPC

Added and updated error messages when splicing to make it more clear to the user why a splice is failing.

Changelog-Changed: Improved error messaging for splice commands.
This commit is contained in:
Dusty Daemon
2024-10-04 15:14:21 -04:00
committed by Rusty Russell
parent 2bf1053cdb
commit 4b3643d209
3 changed files with 42 additions and 8 deletions

View File

@@ -84,6 +84,7 @@ enum jsonrpc_errcode {
SPLICE_LOW_FEE = 359,
SPLICE_HIGH_FEE = 360,
SPLICE_ABORT = 362,
SPLICE_CHANNEL_ERROR = 363,
/* `connect` errors */
CONNECT_NO_KNOWN_ADDRESS = 400,