Skip to content

Commit

Permalink
🛠 Add better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-anderson committed Nov 2, 2021
1 parent 1c7545b commit 297887f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ try {
fetch(url, payload).then((response) => {
// Response object https://developer.mozilla.org/en-US/docs/Web/API/Response
if (!response.ok) {
console.log({response})
core.setFailed("POST returned something unexpected");
}
});
Expand Down

0 comments on commit 297887f

Please sign in to comment.