stringify errors object

This commit is contained in:
softprops 2021-08-08 12:12:34 -04:00
parent 6c87482fb9
commit 8b7a7c0162
2 changed files with 4 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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;