mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 11:39:05 +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) {
|
function (err, entry) {
|
||||||
if (err) {
|
if (err) {
|
||||||
core.error('A file entry error occurred:', 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) {
|
function (err, entry) {
|
||||||
if (err) {
|
if (err) {
|
||||||
core.error('A directory entry error occurred:', 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