summaryrefslogtreecommitdiff
path: root/modules/jsonrpc
diff options
context:
space:
mode:
authorOliver Frank <oliverfrank321@gmail.com>2020-05-15 16:42:24 -0400
committerRĂ©mi Verschelde <rverschelde@gmail.com>2020-05-15 23:55:41 +0200
commit3d09edeaef7274af1a794d2933ddde383be60578 (patch)
treeaf2d64e0e7015c2fd02ce527a70f2fae77d81561 /modules/jsonrpc
parent5b53f227744a7a529711d1341ec28997744c2fe3 (diff)
Improve jsonrpc error reporting
(cherry picked from commit dac8b7b6f4fec0136a3dc95afae0aa8aa8ce9fd9)
Diffstat (limited to 'modules/jsonrpc')
-rw-r--r--modules/jsonrpc/jsonrpc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/jsonrpc/jsonrpc.cpp b/modules/jsonrpc/jsonrpc.cpp
index 6ab5f2d9b3..7bb70b098f 100644
--- a/modules/jsonrpc/jsonrpc.cpp
+++ b/modules/jsonrpc/jsonrpc.cpp
@@ -120,7 +120,7 @@ Variant JSONRPC::process_action(const Variant &p_action, bool p_process_arr_elem
}
if (object == nullptr || !object->has_method(method)) {
- ret = make_response_error(JSONRPC::METHOD_NOT_FOUND, "Method not found", id);
+ ret = make_response_error(JSONRPC::METHOD_NOT_FOUND, "Method not found: " + method, id);
} else {
Variant call_ret = object->callv(method, args);
if (id.get_type() != Variant::NIL) {