mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-13 09:30:05 +00:00
fix: more logs
This commit is contained in:
parent
844470b397
commit
23e5293615
3 changed files with 29 additions and 7 deletions
14
src/index.ts
14
src/index.ts
|
|
@ -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}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue