From 10210e170db69e541686eec2dae52b35df3056c1 Mon Sep 17 00:00:00 2001 From: Tweak Date: Tue, 28 Feb 2023 15:14:12 -0700 Subject: [PATCH] Update getJSON.js --- utils/getJSON.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/getJSON.js b/utils/getJSON.js index c601662..3829e67 100644 --- a/utils/getJSON.js +++ b/utils/getJSON.js @@ -16,16 +16,15 @@ function getJSON(file, filename) { const data = JSON.parse(rawdata); // Parse it return data; // Return true or false, depending if tests pass or fail. } - return 3; // It doesn't exist } catch(err) { core.setOutput('infoMessage', "Could not validate info."); core.setOutput('recordMessage', "Could not validate records."); core.setOutput('jsonData', "Could not read the JSON file, did you have an error in your syntax?") core.setOutput('shouldComment', 'true') - console.error(err); + console.log(err); + return 3; } - return 3; }