rpc: Adjust witness-tx deserialize error message

This commit is contained in:
MarcoFalke
2020-10-13 15:21:03 +02:00
parent cccc752569
commit 3333077823
4 changed files with 11 additions and 10 deletions

View File

@@ -346,7 +346,7 @@ static UniValue generateblock(const JSONRPCRequest& request)
txs.push_back(MakeTransactionRef(std::move(mtx)));
} else {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, strprintf("Transaction decode failed for %s", str));
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, strprintf("Transaction decode failed for %s. Make sure the tx has at least one input.", str));
}
}