added smaller log
This commit is contained in:
parent
7842bb4cad
commit
fe293d91ee
@ -89,7 +89,9 @@ function convertIfAxiosError(error: any): Error | object /* axios' .d.ts has Axi
|
||||
if (error.hasOwnProperty('isAxiosError') && error.isAxiosError && error.hasOwnProperty('toJSON')) {
|
||||
return error.toJSON();
|
||||
} else {
|
||||
return error;
|
||||
return {
|
||||
message: error.message,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user