mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 16:19:07 +08:00
add throw to function
This commit is contained in:
parent
38f54e9d73
commit
e94937595b
@ -72,8 +72,9 @@ export async function createZipUploadStream(
|
||||
function (err, entry) {
|
||||
if (err) {
|
||||
core.error('A file entry error occurred:', err)
|
||||
throw new Error('An error occurred during file entry')
|
||||
}
|
||||
core.debug(`File entry was succesfull: ${entry}`)
|
||||
core.debug(`File entry was succesful: ${entry}`)
|
||||
}
|
||||
)
|
||||
|
||||
@ -86,8 +87,9 @@ export async function createZipUploadStream(
|
||||
function (err, entry) {
|
||||
if (err) {
|
||||
core.error('A directory entry error occurred:', err)
|
||||
throw new Error('An error occurred during directory entry')
|
||||
}
|
||||
core.debug(`File entry was succesfull: ${entry}`)
|
||||
core.debug(`File entry was succesful: ${entry}`)
|
||||
}
|
||||
)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user