Skip to content

Commit 8b7a7c0

Browse files
committed
stringify errors object
1 parent 6c87482 commit 8b7a7c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ 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 ${
171+
resp.status
172+
}\n${json.message}\n${JSON.stringify(json.errors)}`
171173
);
172174
}
173175
return json;

0 commit comments

Comments
 (0)