mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
add error info to axios client
This commit is contained in:
parent
a8afbd323a
commit
5718f14265
@ -68,7 +68,7 @@ axiosClient.interceptors.response.use(
|
||||
}
|
||||
throw new Error(errorData?.readableMessage || `HTTP Error ${status}`);
|
||||
} else if (error.request) {
|
||||
throw new Error(`No response received from server`);
|
||||
throw new Error(`No response received from server: ${error.message}`);
|
||||
} else {
|
||||
throw new Error(`Request failed: ${error.message}`);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user