Improve jsonrpc error reporting
This commit is contained in:
parent
0556a48bf9
commit
dac8b7b6f4
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ Variant JSONRPC::process_action(const Variant &p_action, bool p_process_arr_elem
|
|||
}
|
||||
|
||||
if (object == NULL || !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) {
|
||||
|
|
Loading…
Reference in a new issue