mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-12 17:10:05 +00:00
catch
This commit is contained in:
parent
a36ef755c6
commit
9b637e72cb
2 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue