Skip to content

Commit

Permalink
fix(scm): restore original behavior in GitHubCommitController, fix co…
Browse files Browse the repository at this point in the history
…mpile error in ManagedDeliveryScmController
  • Loading branch information
SheetalAtre committed Sep 15, 2023
1 parent bfc5010 commit e0e6249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class CommitController extends AbstractCommitController {
} else if (e instanceof SpinnakerHttpException && ((SpinnakerHttpException)e).getResponseCode() == 404) {
return getNotFoundCommitsResponse(projectKey, repositorySlug, requestParams.to, requestParams.from, master.baseUrl)
}
log.error("Unhandled error response, acting like commit response was not found", e)
}

commitsResponse.commits.each {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public ResponseEntity<Map<String, Object>> getDeliveryConfigManifest(
} else if (e instanceof SpinnakerServerException) {
if (e instanceof SpinnakerHttpException) {
SpinnakerHttpException spinnakerHttpException = (SpinnakerHttpException) e;
status = HttpStatus.valueOf(re.getResponseCode());
errorDetails = re.getResponseBody();
status = HttpStatus.valueOf(spinnakerHttpException.getResponseCode());
errorDetails = spinnakerHttpException.getResponseBody();
} else {
errorDetails = "Error calling downstream system: " + e.getMessage();
}
Expand Down

0 comments on commit e0e6249

Please sign in to comment.