This commit is contained in:
Tom Hu 2021-07-07 16:36:36 -07:00
parent a36ef755c6
commit 9b637e72cb
No known key found for this signature in database
GPG key ID: F7E832BD316D5603
2 changed files with 8 additions and 1 deletions

4
dist/index.js vendored
View file

@ -14719,7 +14719,9 @@ try {
console.log('wrote it');
console.log(fs.readdirSync(__dirname));
console.log(__dirname);
exec.exec(filename)
exec.exec(filename)["catch"](function (err) {
core.setFailed("Codecov failed with the following error: " + err.message);
})
.then(function () {
console.log('finished!');
});

View file

@ -32,6 +32,11 @@ try {
console.log(__dirname);
exec.exec(filename)
.catch((err) => {
core.setFailed(
`Codecov failed with the following error: ${err.message}`,
);
})
.then(() => {
console.log('finished!');
});