diff --git a/src/wallet/asyncrpcoperation_sendmany.cpp b/src/wallet/asyncrpcoperation_sendmany.cpp index 7ab968854..89abffd1f 100644 --- a/src/wallet/asyncrpcoperation_sendmany.cpp +++ b/src/wallet/asyncrpcoperation_sendmany.cpp @@ -386,7 +386,12 @@ uint256 AsyncRPCOperation_sendmany::main_impl() { // Add Sapling spends for (size_t i = 0; i < saplingNotes.size(); i++) { if (!witnesses[i]) { - throw JSONRPCError(RPC_WALLET_ERROR, "Missing witness for Sapling note"); + throw JSONRPCError( + RPC_WALLET_ERROR, + strprintf( + "Missing witness for Sapling note at outpoint %s", + spendable.saplingNoteEntries[i].op.ToString()) + ); } builder_.AddSaplingSpend(saplingKeys[i].expsk, saplingNotes[i], anchor, witnesses[i].value());