From 5718f142659c4a25b25c2f3117afac2eb962d66c Mon Sep 17 00:00:00 2001 From: Sha Zhou Date: Tue, 17 Jun 2025 14:11:16 +0800 Subject: [PATCH] add error info to axios client --- src/utils/axios-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/axios-client.ts b/src/utils/axios-client.ts index cdbd74e..29a617c 100644 --- a/src/utils/axios-client.ts +++ b/src/utils/axios-client.ts @@ -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}`); }