File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments