dashboard: make ApiError details public
This commit is contained in:
parent
530536a77b
commit
0562678e92
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue