1
0
Fork 0

update logging

pull/1700/head
bethanyj28 2024-04-03 15:27:58 -04:00
parent e94937595b
commit f9bafe97e6
1 changed files with 6 additions and 4 deletions

View File

@ -71,10 +71,11 @@ export async function createZipUploadStream(
{name: file.destinationPath}, {name: file.destinationPath},
function (err, entry) { function (err, entry) {
if (err) { 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') 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}`)
} }
) )
@ -86,10 +87,11 @@ export async function createZipUploadStream(
{name: `${file.destinationPath}/`}, {name: `${file.destinationPath}/`},
function (err, entry) { function (err, entry) {
if (err) { 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') 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}`)
} }
) )
) )