mirror of
https://github.com/timheuer/base64-to-file.git
synced 2026-10-04 09:04:35 +03:00
Generalizing failed message
This commit is contained in:
1 parent
3ab47b004c
commit
10416be100
2 files changed
+2
-2
No files matched your search
Vendored
+1
-1
@@ -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;
|
||||
|
||||
@@ -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