Skip to content

Commit 6c87482

Browse files
committed
fix upload err fmt
1 parent 2956b0d commit 6c87482

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.10
2+
3+
- fixed error message formatting for file uploads
4+
15
## 0.1.9
26

37
- add support for linking release to GitHub discussion [#136](https://github.com/softprops/action-gh-release/pull/136)

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export const upload = async (
167167
const json = await resp.json();
168168
if (resp.status !== 201) {
169169
throw new Error(
170-
"Failed to upload release asset ${name}. recieved status code ${resp.status}\n${json.message}\n${json.errors}"
170+
`Failed to upload release asset ${name}. recieved status code ${resp.status}\n${json.message}\n${json.errors}`
171171
);
172172
}
173173
return json;

0 commit comments

Comments
 (0)