Skip to content

Commit

Permalink
improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
valado committed Aug 31, 2020
1 parent eee46e2 commit 2b0bd1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ try {

lambda.updateFunctionCode(uploadParams, (err) => {
if (!!err) {
console.error(err);
core.error(error.message);
core.setFailed(err);
}
});
Expand Down Expand Up @@ -92,11 +92,12 @@ try {
if (Object.keys(configParams).length > 1) {
lambda.updateFunctionConfiguration(configParams, (err) => {
if (!!err) {
console.error(err);
core.error(error.message);
core.setFailed(err);
}
});
}
} catch (error) {
core.error(error.message);
core.setFailed(error.message);
}

0 comments on commit 2b0bd1a

Please sign in to comment.