// Find method
const CRPCCommand *pcmd = tableRPC[strMethod];
if (!pcmd)
- throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method not found");
+ {
+ throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method " + strMethod + " not found");
+ }
g_rpcSignals.PreCommand(*pcmd);