mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +00:00
catch
This commit is contained in:
parent
a36ef755c6
commit
9b637e72cb
2 changed files with 8 additions and 1 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -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!');
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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!');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue