From c54053fb4a2d8b8d1046b15b5601a526cfe0ae0f Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Sun, 6 Oct 2024 15:41:40 +0200 Subject: [PATCH] fix config update error output Signed-off-by: Frank Jogeleit --- dist/index.js | 4 ++-- src/helper.js | 2 +- src/httpClient.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 9dc7102..532b964 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27445,7 +27445,7 @@ const convertToJSON = (value) => { * * @returns {FormData} */ -const convertToFormData = (data, files, convertPaths) => { +const convertToFormData = (data, files) => { const formData = new FormData(); for (const [key, value] of Object.entries(data)) { @@ -27666,7 +27666,7 @@ const updateConfig = async (instanceConfig, formData, actions) => { } } } catch(error) { - actions.setFailed({ message: `Unable to read Content-Length: ${error.message}`, data, files }) + actions.setFailed(JSON.stringify({ message: `Unable to read Content-Length: ${error.message}` })) } } diff --git a/src/helper.js b/src/helper.js index da3207c..82db0b1 100644 --- a/src/helper.js +++ b/src/helper.js @@ -24,7 +24,7 @@ const convertToJSON = (value) => { * * @returns {FormData} */ -const convertToFormData = (data, files, convertPaths) => { +const convertToFormData = (data, files) => { const formData = new FormData(); for (const [key, value] of Object.entries(data)) { diff --git a/src/httpClient.js b/src/httpClient.js index acd1dbf..f91cf78 100644 --- a/src/httpClient.js +++ b/src/httpClient.js @@ -160,7 +160,7 @@ const updateConfig = async (instanceConfig, formData, actions) => { } } } catch(error) { - actions.setFailed({ message: `Unable to read Content-Length: ${error.message}`, data, files }) + actions.setFailed(JSON.stringify({ message: `Unable to read Content-Length: ${error.message}` })) } }