Skip to content

Commit

Permalink
update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bethanyj28 committed Apr 3, 2024
1 parent e949375 commit f9bafe9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/artifact/src/internal/upload/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ export async function createZipUploadStream(
{name: file.destinationPath},
function (err, entry) {
if (err) {
core.error('A file entry error occurred:', err)
core.error('A file entry error occurred')
core.info(err)
throw new Error('An error occurred during file entry')
}
core.debug(`File entry was succesful: ${entry}`)
core.debug(`File entry was succesful: ${entry.data.name}`)
}
)

Expand All @@ -86,10 +87,11 @@ export async function createZipUploadStream(
{name: `${file.destinationPath}/`},
function (err, entry) {
if (err) {
core.error('A directory entry error occurred:', err)
core.error('A directory entry error occurred')
core.info(err)
throw new Error('An error occurred during directory entry')
}
core.debug(`File entry was succesful: ${entry}`)
core.debug(`File entry was succesful: ${entry.data.name}`)
}
)
)
Expand Down

0 comments on commit f9bafe9

Please sign in to comment.