Update getJSON.js

This commit is contained in:
Tweak authored and GitHub committed 2023-02-28 15:14:12 -07:00
1 parent a93eb38374
commit 10210e170d
1 file changed
+2 -3
+2 -3
View File
@@ -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;
}