fix: more logs

This commit is contained in:
Tom Hu 2023-11-10 10:39:39 +11:00
parent 844470b397
commit 23e5293615
No known key found for this signature in database
GPG key ID: 79155678363963D2
3 changed files with 29 additions and 7 deletions

View file

@ -28,12 +28,22 @@ try {
const filePath = fs.createWriteStream(filename);
filePath
.on('open', () => {
if (fs.existsSync(filename)) {
core.info('IT EXISTS open');
} else {
core.info('IT DOESNT EXIST open');
}
res.pipe(filePath);
if (fs.existsSync(filename)) {
core.info('IT EXISTS pipe');
} else {
core.info('IT DOESNT EXIST pipe');
}
}).on('error', (err) => {
if (fs.existsSync(filename)) {
core.info('IT EXISTS on');
core.info('IT EXISTS error');
} else {
core.info('IT DOESNT EXIST on');
core.info('IT DOESNT EXIST error');
}
setFailure(
`Codecov:Failed to write uploader binary: ${err.message}\n${err}`,