Skip to content

Commit 577ccbb

Browse files
authored
Make error loging clearer (#238)
* Update error logs
1 parent d562149 commit 577ccbb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

core/nodejsActionBase/runner.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function initializeActionHandler(message) {
2929
// The code is a base64-encoded zip file.
3030
ext = detectFileType(message.code)
3131
if (ext == 'unsupported'){
32-
return Promise.reject("There was an error uncompressing the action archive.");
32+
return Promise.reject("There was an error uncompressing the action archive. The file type is unsupported");
3333
}
3434
return extractInTmpDir(message.code)
3535
.then(moduleDir => {
@@ -161,13 +161,13 @@ function extractInTmpDir(archiveFileContents) {
161161
if (ext === 'zip') {
162162
return exec("unzip -qq " + archiveFile + " -d " + tmpDir)
163163
.then(res => path.resolve(tmpDir))
164-
.catch(error => Promise.reject("There was an error uncompressing the action archive."));
164+
.catch(error => Promise.reject("There was an error uncompressing the action Zip archive."));
165165
} else if (ext === 'tar.gz') {
166166
return exec("tar -xzf " + archiveFile + " -C " + tmpDir + " > /dev/null")
167167
.then(res => path.resolve(tmpDir))
168-
.catch(error => Promise.reject("There was an error uncompressing the action archive."));
168+
.catch(error => Promise.reject("There was an error uncompressing the action Tar GZ archive."));
169169
} else {
170-
return Promise.reject("There was an error uncompressing the action archive.");
170+
return Promise.reject("There was an error uncompressing the action archive. file ext did not Match");
171171
}
172172
});
173173
});

0 commit comments

Comments
 (0)