Improve jsonrpc error reporting

(cherry picked from commit dac8b7b6f4)
This commit is contained in:
Oliver Frank 2020-05-15 16:42:24 -04:00 committed by Rémi Verschelde
parent 5b53f22774
commit 3d09edeaef

View File

@ -120,7 +120,7 @@ Variant JSONRPC::process_action(const Variant &p_action, bool p_process_arr_elem
} }
if (object == nullptr || !object->has_method(method)) { 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 { } else {
Variant call_ret = object->callv(method, args); Variant call_ret = object->callv(method, args);
if (id.get_type() != Variant::NIL) { if (id.get_type() != Variant::NIL) {