1
0
Fork 0
mirror of https://github.com/fjogeleit/http-request-action.git synced 2025-01-07 02:06:52 +00:00

log customHeaders parse error

Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
This commit is contained in:
Frank Jogeleit 2023-03-29 10:53:51 +02:00
parent e8dd067b83
commit 394beeafea
2 changed files with 4 additions and 2 deletions

3
dist/index.js vendored
View file

@ -9748,7 +9748,8 @@ if (!!core.getInput('customHeaders')) {
try {
customHeaders = JSON.parse(core.getInput('customHeaders'));
} catch(error) {
core.error('Could not parse customHeaders string value')
core.debug(`Invalid customHeaders string: ${core.getInput('customHeaders')}`)
core.error(`Could not parse customHeaders string value: ${error}`)
}
}

View file

@ -13,7 +13,8 @@ if (!!core.getInput('customHeaders')) {
try {
customHeaders = JSON.parse(core.getInput('customHeaders'));
} catch(error) {
core.error('Could not parse customHeaders string value')
core.debug(`Invalid customHeaders string: ${core.getInput('customHeaders')}`)
core.error(`Could not parse customHeaders string value: ${error}`)
}
}