samvera / samvera.github.io

Public website for version controlled Samvera documentation (mostly Hyrax)
http://samvera.github.io
Apache License 2.0
7 stars 17 forks source link

Best Practice: rescue standard error #207

Open jcoyne opened 6 years ago

jcoyne commented 6 years ago

From tech call on 2/28/2018

If you need to do something like:

rescue StandardError
...
end

Then you should add a comment to future developers about why you chose to capture such a general error and why a more specific error wouldn't suffice.