mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 01:49:07 +08:00
update logging
This commit is contained in:
parent
e94937595b
commit
f9bafe97e6
@ -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}`)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user