Skip to content

Commit

Permalink
fix: align error logs
Browse files Browse the repository at this point in the history
We can log the entire response for any of the failed requests. They may
contain valuable info.
  • Loading branch information
korthout committed Nov 5, 2023
1 parent 45f65af commit 51ff34e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ export class Backport {
milestone,
);
if (set_milestone_response.status != 200) {
console.error(set_milestone_response.status);
console.error(JSON.stringify(set_milestone_response));
}
}
Expand All @@ -284,7 +283,7 @@ export class Backport {
assignees,
);
if (set_assignee_response.status != 201) {
console.error(set_assignee_response.status);
console.error(JSON.stringify(set_assignee_response));
}
}
}
Expand All @@ -303,7 +302,7 @@ export class Backport {
const set_reviewers_response =
await this.github.requestReviewers(reviewRequest);
if (set_reviewers_response.status != 201) {
console.error(set_reviewers_response.status);
console.error(JSON.stringify(set_reviewers_response));
}
}
}
Expand Down

0 comments on commit 51ff34e

Please sign in to comment.