stream: switch the error details to error type
This commit is contained in:
@@ -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')
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user