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

feat: DatasourceError #5475

Merged
merged 4 commits into from
Feb 13, 2020
Merged

feat: DatasourceError #5475

merged 4 commits into from
Feb 13, 2020

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Feb 13, 2020

Adds custom datasource error type to simplify throwing and logging of datasource errors.

Closes #5468

@rarkins rarkins requested a review from viceice February 13, 2020 11:34
@rarkins
Copy link
Collaborator Author

rarkins commented Feb 13, 2020

@viceice if this approach looks ok to you then I'll extend it to all datasources

@rarkins rarkins marked this pull request as ready for review February 13, 2020 12:04
@rarkins
Copy link
Collaborator Author

rarkins commented Feb 13, 2020

This worked out cleaner than I expected. The new error type is backwards compatible so no tests needed changing.

lib/datasource/cargo/index.ts Show resolved Hide resolved
lib/datasource/cargo/index.ts Show resolved Hide resolved
lib/datasource/index.ts Show resolved Hide resolved
lib/datasource/common.ts Outdated Show resolved Hide resolved
@rarkins rarkins merged commit b5e344b into master Feb 13, 2020
@rarkins rarkins deleted the feat/5468-datasource-failure-error branch February 13, 2020 12:29
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 19.133.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throw custom DATASOURCE_FAILURE Errors
3 participants