diff --git a/dist/index.js b/dist/index.js index 5f02e3a..626c445 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27635,7 +27635,7 @@ const request = async({ method, instanceConfig, data, files, file, actions, opti if (error.response) { actions.setFailed(JSON.stringify({ code: error.response.status, message: error.response.data })) } else if (error.request) { - actions.setFailed(JSON.stringify({ error: "no response received" })); + actions.setFailed(JSON.stringify({ error: "no response received", message: error.message })); } else { actions.setFailed(JSON.stringify({ message: error.message, data })); } diff --git a/src/httpClient.js b/src/httpClient.js index 3f397dc..acd1dbf 100644 --- a/src/httpClient.js +++ b/src/httpClient.js @@ -129,7 +129,7 @@ const request = async({ method, instanceConfig, data, files, file, actions, opti if (error.response) { actions.setFailed(JSON.stringify({ code: error.response.status, message: error.response.data })) } else if (error.request) { - actions.setFailed(JSON.stringify({ error: "no response received" })); + actions.setFailed(JSON.stringify({ error: "no response received", message: error.message })); } else { actions.setFailed(JSON.stringify({ message: error.message, data })); }