mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 13:47:56 +02:00
wallet: document structured importdescriptors errors
Replace the elided "JSONRPC error" placeholder in the importdescriptors RPC help with explicit "code" and "message" fields. This makes the documented result schema match the structured error object returned in practice.
This commit is contained in:
@@ -343,7 +343,8 @@ RPCHelpMan importdescriptors()
|
||||
}},
|
||||
{RPCResult::Type::OBJ, "error", /*optional=*/true, "",
|
||||
{
|
||||
{RPCResult::Type::ELISION, "", "JSONRPC error"},
|
||||
{RPCResult::Type::NUM, "code", "JSONRPC error code"},
|
||||
{RPCResult::Type::STR, "message", "JSONRPC error message"},
|
||||
}},
|
||||
}},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user