Generalizing failed message
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -67,7 +67,7 @@ async function run() {
|
||||
const tempFile = Buffer.from(encodedString, 'base64');
|
||||
|
||||
if (tempFile.length == 0)
|
||||
core.setFailed('Certificate value is not set');
|
||||
core.setFailed('Temporary file value is not set');
|
||||
|
||||
fs.writeFile(fileName, tempFile, (err) => {
|
||||
if (err) throw err;
|
||||
|
||||
2
index.js
2
index.js
@@ -12,7 +12,7 @@ async function run() {
|
||||
const tempFile = Buffer.from(encodedString, 'base64');
|
||||
|
||||
if (tempFile.length == 0)
|
||||
core.setFailed('Certificate value is not set');
|
||||
core.setFailed('Temporary file value is not set');
|
||||
|
||||
fs.writeFile(fileName, tempFile, (err) => {
|
||||
if (err) throw err;
|
||||
|
||||
Reference in New Issue
Block a user