From 394beeafeaadec707ad628b5df315f6706e8aa52 Mon Sep 17 00:00:00 2001 From: Frank Jogeleit Date: Wed, 29 Mar 2023 10:53:51 +0200 Subject: [PATCH] log customHeaders parse error Signed-off-by: Frank Jogeleit --- dist/index.js | 3 ++- src/index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4048718..a3f93c5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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}`) } } diff --git a/src/index.js b/src/index.js index 75147d9..b88b9c2 100644 --- a/src/index.js +++ b/src/index.js @@ -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}`) } }