*Update error codes

This commit is contained in:
Derrick Hammer 2022-09-09 06:19:08 -04:00
parent fe021500c6
commit a12f6c0c89
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -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;