Skip to content

Build: RepositoryError message #8999

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

Merged
merged 3 commits into from
Mar 8, 2022
Merged

Conversation

humitos
Copy link
Member

@humitos humitos commented Mar 7, 2022

When a RepositoryError without a message was raised we were setting the
message as "None" and reporting this to the user :(

This commit first checks if the exception already contains a message and use
it in that case. If the exception does not contains a message, it raises it
without a message so the generic one is added by the Celery
handler (on_failure).

Also, it improves the messages reported to the user to communicate a more
detailed error depending the case.

Related to the error reported in #8995

@humitos humitos requested a review from a team as a code owner March 7, 2022 10:02
When a `RepositoryError` _without_ a message was raised we were setting the
message as `"None"` and reporting this to the user :(

This commit first checks if the exception already contains a message and use
it in that case. If the exception does not contains a message, it raises it
without a message so the generic one is added by the Celery
handler (`on_failure`).

Also, it improves the messages reported to the user to communicate a more
detailed error depending the case.
@humitos humitos force-pushed the humitos/repository-error-message branch from 64099d1 to 3994cb7 Compare March 7, 2022 10:07
@agjohnson
Copy link
Contributor

There is a failing lint test that I'll try fixing for this PR to get it merged.

@agjohnson agjohnson merged commit 2d3e146 into master Mar 8, 2022
@agjohnson agjohnson deleted the humitos/repository-error-message branch March 8, 2022 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants