-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove Generic Exception prefix for form submission errors #6526
base: master
Are you sure you want to change the base?
Conversation
This indicates that the message already includes that prefix. Is this true for other messages as well? |
I don't think all of them would but the most commons one, yes! Even more reason to get rid of the prefix, I think. Any ideas why the style check is failing? It always gives a trace like
It passes locally. It fails at slightly different points each time and it feels like a resource thing to me. Is it a problem that has happened on other PRs? |
@lognaturel I'm not able to rerun failed tests for this (more on that later), but I can confirm this works locally for me. My guess would be that Circle CI was having issues when you were working on this. Could you try rerunning? I'm not sure why the rerun is disabled for me. I'm guessing it's because Circle CI is running the checks in the "lognaturel" org instead of "getodk" (which is used for @grzesiek2010 and I). I'll have a look at Circle CI's docs. |
@lognaturel I'm pretty sure you've somehow set up your fork of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a pet peeve of mine that I'm hoping will be an easy accept. I am annoyed every time I see "Error: Generic Exception: Error: " It looks like a mistake. I have never seen an error for which "Error: Generic Exception" added any information.
Why is this the best possible solution? Were any other approaches considered?
I considered only removing the
Error:
prefix but I really don't thinkGeneric Exception
adds anything either.I didn't add any tests. I verified that there are no tests that expect that text currently.
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
The biggest risk would be that there's an exception without any error message at all. But I think seeing the exception name, which the
toString
should give us, is way more useful than the static "Generic Exception" text.Do we need any specific form for testing your changes? If so, please attach one.
No.
Does this change require updates to documentation? If so, please file an issue here and include the link below.
No.
Before submitting this PR, please make sure you have:
there were no existing tests so it feels ok to leave as-is.
./gradlew connectedAndroidTest
(or./gradlew testLab
) and confirmed all checks still passI don't see any reason to run connected tests for this change.
DateFormatsTest