*Update error codes
This commit is contained in:
parent
fe021500c6
commit
a12f6c0c89
|
@ -224,13 +224,13 @@ export class RPCServer {
|
|||
let item: any = this.methods.get(moduleName);
|
||||
|
||||
if (!item) {
|
||||
return new Error("Invalid module");
|
||||
return new Error("INVALID_MODULE");
|
||||
}
|
||||
|
||||
item = item.get(method);
|
||||
|
||||
if (!item) {
|
||||
return new Error("Invalid method");
|
||||
return new Error("INVALID_METHOD");
|
||||
}
|
||||
|
||||
return item;
|
||||
|
|
Loading…
Reference in New Issue