adding error checks

This commit is contained in:
Vallie Joseph
2024-04-01 15:07:28 +00:00
parent dea3595881
commit 2c4f0f555e
2 changed files with 4 additions and 2 deletions

View File

@@ -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)
}