dashboard: make ApiError details public

This commit is contained in:
Dragory 2021-04-10 13:23:55 +03:00
parent 530536a77b
commit 0562678e92
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

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