fix upload err fmt
This commit is contained in:
parent
2956b0de81
commit
6c87482fb9
3 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue