Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve clouddriver exception handling #818

Merged

Conversation

dbyron-sf
Copy link
Contributor

These changes should really have been in #750. That PR added detail from clouddriver, but at the expense of detail from rosco about the artifact and messages about helm charts and downloading. This restores the info from before that PR.

image

where before this PR that was:

image

…rRetrofitErrorHandler when talking to clouddriver

spinnaker#750 changed rosco to use
SpinnakerRetrofitErrorHandler when talking to clouddriver.  As a consequence, exceptions
changed from RetrofitError to SpinnakerException, so update the code that looked for
RetrofitError, to restore the previous wrapping and error messages to rosco's callers.

While we're at it, change ArtifactDownloaderImpl.downloadArtifactToFile to throw a
SpinnakerException when it catches one since that seems more informative than IOException,
especially since downloadArtifactToFile throws IOExceptions for other reasons.
Copy link

@apoorvmahajan apoorvmahajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@german-muzquiz german-muzquiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this improvement!

@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants