Skip to content

Commit

Permalink
improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
TG908 committed Sep 5, 2019
1 parent 9f90dec commit dc27cf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function run() {
octokit.pulls.merge({ owner: context.repo.owner, repo: context.repo.repo, pull_number: pr.data.number });
})
.catch((err) => {
core.setFailed('Failed to create or merge PR: ' + err.errors["message"]);
core.setFailed('Failed to create or merge PR ' + destinationBranch + '<-' + owner + ':' + originBranch + ':' + err.message);
});
}
catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function run() {
octokit.pulls.merge({owner: context.repo.owner, repo: context.repo.repo, pull_number: pr.data.number});
})
.catch((err) => {
core.setFailed('Failed to create or merge PR: '+err.errors["message"]);
core.setFailed('Failed to create or merge PR ' +destinationBranch +'<-' +owner +':' +originBranch +':' +err.message);
});

} catch (error) {
Expand Down

0 comments on commit dc27cf1

Please sign in to comment.