add additional catch blocks, correct link func

This commit is contained in:
ibrahim0814
2019-12-05 20:10:44 -08:00
parent eb1ea256cb
commit 3d303911df
2 changed files with 22 additions and 2 deletions

12
dist/index.js vendored
View File

@@ -365,6 +365,11 @@ try {
],
options
)
.catch(err => {
core.warning(
`Codecov error warning: ${err.message}`
);
})
.then(() => {
unlinkFile();
});
@@ -401,6 +406,11 @@ try {
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
options
)
.catch(err => {
core.warning(
`Codecov error warning: ${err.message}`
);
})
.then(() => {
unlinkFile();
});
@@ -408,7 +418,7 @@ try {
}
const unlinkFile = () => {
fs.unlink("codeco.sh", err => {
fs.unlink("codecov.sh", err => {
if (err && fail_ci) {
throw err;
} else if (err) {