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 };
|
type QueryParamObject = { [key: string]: string | null };
|
||||||
|
|
||||||
export class ApiError extends Error {
|
export class ApiError extends Error {
|
||||||
protected body: object;
|
public body: any;
|
||||||
protected status: number;
|
public status: number;
|
||||||
protected res: Response;
|
public res: Response;
|
||||||
|
|
||||||
constructor(message: string, body: object, status: number, res: Response) {
|
constructor(message: string, body: object, status: number, res: Response) {
|
||||||
super(message);
|
super(message);
|
||||||
|
|
Loading…
Add table
Reference in a new issue