Skip to content

Commit

Permalink
better error on release create failure (softprops#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops authored Aug 9, 2021
1 parent 487fcd9 commit 6ecde84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ export const release = async (
console.log(
`⚠️ GitHub release failed with status: ${
error.status
}, retrying... (${maxRetries - 1} retries remaining)`
}\n${JSON.stringify(
error.response.data.errors
)}\nretrying... (${maxRetries - 1} retries remaining)`
);
return release(config, releaser, maxRetries - 1);
}
Expand Down

0 comments on commit 6ecde84

Please sign in to comment.