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

20
dist/index.js vendored
View file

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

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

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}`,