This commit is contained in:
Tom Hu 2021-07-07 17:41:06 -07:00
parent 112e1a0afd
commit ef56160684
No known key found for this signature in database
GPG key ID: F7E832BD316D5603
3 changed files with 14 additions and 15 deletions

View file

@ -28,15 +28,15 @@ try {
}
console.log(fs.statSync(filename));
childProcess.execFile(filename)
.catch((err) => {
core.setFailed(
`Codecov failed with the following error: ${err.message}`,
);
})
.then(() => {
console.log('finished!');
});
childProcess.execFile(filename, (err) => {
if (err) {
core.setFailed(
'Codecov: Failed to properly upload: ' +
`${err.message}`,
);
}
console.log('finished!');
});
});
} catch (err) {
core.setFailed(