mirror of
https://github.com/actions/toolkit.git
synced 2026-08-16 00:00:21 +02:00
adding error checks
This commit is contained in:
@@ -50,6 +50,7 @@ export async function createZipUploadStream(
|
||||
createReadStream(file.sourcePath),
|
||||
{name: file.destinationPath},
|
||||
function (err, entry) {
|
||||
core.debug(`${err}`)
|
||||
if (err) reject(err)
|
||||
else resolve(entry)
|
||||
}
|
||||
@@ -60,6 +61,7 @@ export async function createZipUploadStream(
|
||||
null,
|
||||
{name: `${file.destinationPath}/`},
|
||||
function (err, entry) {
|
||||
core.debug(`${err}`)
|
||||
if (err) reject(err)
|
||||
else resolve(entry)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user