stream: switch the error details to error type

This commit is contained in:
Daniel Kennedy
2026-02-24 16:23:27 -05:00
parent aaced9cfbb
commit 950598902b
@@ -41,7 +41,7 @@ export async function createRawFileUploadStream(
fileStream.on('error', error => { fileStream.on('error', error => {
core.error('An error has occurred while reading the file for upload') core.error('An error has occurred while reading the file for upload')
core.info(String(error)) core.error(String(error))
uploadStream.destroy( uploadStream.destroy(
new Error('An error has occurred during file read for the artifact') new Error('An error has occurred during file read for the artifact')
) )