You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.logger.error(`failed copying from ${podName}:${srcDir}/${srcFile} to ${destPath} to download file completely: ${destPath}${additionalErrorMessageDetail}`,err)
652
+
rejection=true
653
+
})
643
654
}catch(e){
644
-
returnreject(newFullstackTestingError(`failed copying from ${podName}:${srcDir}/${srcFile} to ${destPath} to extract file: ${destPath}`,e))
655
+
consterrorMessage=`failed to complete copying from ${podName}:${srcDir}/${srcFile} to ${destPath} to extract file: ${destPath}`
656
+
this.logger.error(errorMessage,e)
657
+
rejection=true
658
+
thrownewFullstackTestingError(errorMessage,e)
645
659
}
646
660
})
647
661
648
-
returnreject(newFullstackTestingError(`failed copying from ${podName}:${srcDir}/${srcFile} to ${destPath} to download file completely: ${destPath}${additionalErrorMessageDetail}`))
662
+
if(rejection){
663
+
consterrorMessage=`failed copying from ${podName}:${srcDir}/${srcFile} to ${destPath} to download file completely: ${destPath}${additionalErrorMessageDetail}`
this.logger.debug(`finished copying from ${podName}:${srcDir}/${srcFile} to ${destPath}`)
665
686
})
666
687
667
688
outputFileStream.on('error',(err)=>{
668
-
returnreject(newFullstackTestingError(`writerStream error encountered copying from ${podName}:${srcDir}/${srcFile} to ${destPath}, err: ${err.toString()}`,err))
689
+
consterrorMessage=`writerStream error encountered copying from ${podName}:${srcDir}/${srcFile} to ${destPath}, err: ${err.toString()}`
0 commit comments