-
Notifications
You must be signed in to change notification settings - Fork 936
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
Raise error when note has no comments #2176
base: master
Are you sure you want to change the base?
Raise error when note has no comments #2176
Conversation
This definitely needs a test but more significantly I'm not sure this is really the right fix. I have a feeling that the Still thinking about the best way to deal with it really. |
The problem is that So either the view needs to be rewritten to handle a case where there are no comments, or the view needs to not be called in the first place.. |
The line that crashes is: openstreetmap-website/app/views/browse/note.html.erb Lines 10 to 13 in 874fddf
|
Unless a new error is raised: |
What do you mean by "exclude these"? What should be excluded? |
#3608 supersedes this pull request. |
Temporary fix for #2146
RecordNotFound
exception when note has no comments (avoiding 500 Error)