From 0562678e92d282ff59c01c82145cf3174250f125 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 10 Apr 2021 13:23:55 +0300 Subject: [PATCH] dashboard: make ApiError details public --- dashboard/src/api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/src/api.ts b/dashboard/src/api.ts index 0ca2145f..bc37d3b8 100644 --- a/dashboard/src/api.ts +++ b/dashboard/src/api.ts @@ -4,9 +4,9 @@ const apiUrl = process.env.API_URL; type QueryParamObject = { [key: string]: string | null }; export class ApiError extends Error { - protected body: object; - protected status: number; - protected res: Response; + public body: any; + public status: number; + public res: Response; constructor(message: string, body: object, status: number, res: Response) { super(message);