This commit is contained in:
lohit
2025-05-27 19:17:05 +05:30
parent 5627c5624f
commit bb01199877

View File

@@ -275,6 +275,8 @@ function makeAxiosInstance({
type: 'error',
message: safeStringifyJSON(errorResponseData?.toString?.())
});
// todo: needs to be discussed whether the original error response message should be modified or not
error.response.data = `Maximum redirects (${requestMaxRedirects}) exceeded`;
return Promise.reject(error);
}