Browse Source

make code and errorMessage public

painor 3 years ago
parent
commit
f7485f5a0e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      gramjs/errors/RPCBaseErrors.ts

+ 2 - 2
gramjs/errors/RPCBaseErrors.ts

@@ -5,8 +5,8 @@ import { Api } from "../tl";
 import { CustomError } from "ts-custom-error";
 
 export class RPCError extends CustomError {
-    protected code: number | undefined;
-    protected errorMessage: string;
+    public code: number | undefined;
+    public errorMessage: string;
 
     constructor(message: string, request: Api.AnyRequest, code?: number) {
         super(