Skip to content

Commit

Permalink
fix upload err fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops committed Aug 8, 2021
1 parent 2956b0d commit 6c87482
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.10

- fixed error message formatting for file uploads

## 0.1.9

- add support for linking release to GitHub discussion [#136](https://github.com/softprops/action-gh-release/pull/136)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ 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.errors}`
);
}
return json;
Expand Down

0 comments on commit 6c87482

Please sign in to comment.