fix config update error output

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
This commit is contained in:
Frank Jogeleit 2024-10-06 15:41:40 +02:00
parent 46e3792733
commit c54053fb4a
3 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View file

@ -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}` }))
}
}

View file

@ -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)) {

View file

@ -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}` }))
}
}