mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +00:00
fix: more logs
This commit is contained in:
parent
844470b397
commit
23e5293615
3 changed files with 29 additions and 7 deletions
20
dist/index.js
vendored
20
dist/index.js
vendored
|
|
@ -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
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
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…
Reference in a new issue