Skip to content

Commit e9bcd44

Browse files
committed
error message
1 parent 90447b5 commit e9bcd44

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/createarelease.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ function run(token) {
5757
}).catch((err) => {
5858
if (err.name == 'HttpError') {
5959
core.setFailed("Call to github failed response code : " + err.status);
60-
core.setFailed(err.response.body);
6160
}
61+
core.setFailed(JSON.stringify(err));
6262
core.setFailed(err.message);
6363
});
6464
});

src/createarelease.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ export async function run(token) {
3838
})
3939
}
4040
}).catch((err) => {
41-
4241
if(err.name == 'HttpError') {
4342
core.setFailed("Call to github failed response code : " + err.status)
44-
core.setFailed(err.response.body)
4543
}
4644

45+
core.setFailed(JSON.stringify(err))
4746
core.setFailed(err.message);
4847
})
4948
}

0 commit comments

Comments
 (0)