mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2024-12-27 04:22:11 -05:00
fix config update error output
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
This commit is contained in:
parent
46e3792733
commit
c54053fb4a
3 changed files with 4 additions and 4 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -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}` }))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -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}` }))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue