From 74f6b825a76545e5fe763ebaf75e4235c662496b Mon Sep 17 00:00:00 2001 From: Luke Roy Date: Wed, 3 May 2023 09:42:23 +0200 Subject: [PATCH 1/2] Update error logs --- core/nodejsActionBase/runner.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/nodejsActionBase/runner.js b/core/nodejsActionBase/runner.js index 5ed211c9..1a13cdcd 100644 --- a/core/nodejsActionBase/runner.js +++ b/core/nodejsActionBase/runner.js @@ -29,7 +29,7 @@ function initializeActionHandler(message) { // The code is a base64-encoded zip file. ext = detectFileType(message.code) if (ext == 'unsupported'){ - return Promise.reject("There was an error uncompressing the action archive."); + return Promise.reject("There was an error uncompressing the action archive. The file type is unsupported"); } return extractInTmpDir(message.code) .then(moduleDir => { @@ -161,13 +161,13 @@ function extractInTmpDir(archiveFileContents) { if (ext === 'zip') { return exec("unzip -qq " + archiveFile + " -d " + tmpDir) .then(res => path.resolve(tmpDir)) - .catch(error => Promise.reject("There was an error uncompressing the action archive.")); + .catch(error => Promise.reject("There was an error uncompressing the action Zip archive.")); } else if (ext === 'tar.gz') { return exec("tar -xzf " + archiveFile + " -C " + tmpDir + " > /dev/null") .then(res => path.resolve(tmpDir)) - .catch(error => Promise.reject("There was an error uncompressing the action archive.")); + .catch(error => Promise.reject("There was an error uncompressing the action Tar GZ archive.")); } else { - return Promise.reject("There was an error uncompressing the action archive."); + return Promise.reject("There was an error uncompressing the action archive. file ext didn+t Match"); } }); }); From 8b99ff3ad80f2f50b9773561b673c9e7456e230b Mon Sep 17 00:00:00 2001 From: Luke Roy Date: Wed, 3 May 2023 09:43:16 +0200 Subject: [PATCH 2/2] fix typo --- core/nodejsActionBase/runner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/nodejsActionBase/runner.js b/core/nodejsActionBase/runner.js index 1a13cdcd..84ae1c7f 100644 --- a/core/nodejsActionBase/runner.js +++ b/core/nodejsActionBase/runner.js @@ -167,7 +167,7 @@ function extractInTmpDir(archiveFileContents) { .then(res => path.resolve(tmpDir)) .catch(error => Promise.reject("There was an error uncompressing the action Tar GZ archive.")); } else { - return Promise.reject("There was an error uncompressing the action archive. file ext didn+t Match"); + return Promise.reject("There was an error uncompressing the action archive. file ext did not Match"); } }); });