Skip to content

Commit

Permalink
stringify errors object
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Aug 8, 2021
1 parent 6c87482 commit 8b7a7c0
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 @@ -167,7 +167,9 @@ export const upload = async (
const json = await resp.json();
if (resp.status !== 201) {
throw new Error(
`Failed to upload release asset ${name}. recieved status code ${resp.status}\n${json.message}\n${json.errors}`
`Failed to upload release asset ${name}. recieved status code ${
resp.status
}\n${json.message}\n${JSON.stringify(json.errors)}`
);
}
return json;
Expand Down

0 comments on commit 8b7a7c0

Please sign in to comment.