projectblacklight / blacklight

Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr) index.
http://projectblacklight.org/
Other
757 stars 256 forks source link

Another new rubocop check is failing CI #3079

Closed sandbergja closed 10 months ago

sandbergja commented 10 months ago

Here is the message in CI:

Offenses:

app/controllers/concerns/blacklight/bookmarks.rb:89:162: C: [Correctable] Rails/HttpStatus: Prefer :internal_server_error over 500 to define HTTP status code.
      success ? render(json: { bookmarks: { count: current_or_guest_user.bookmarks.count } }) : render(json: current_or_guest_user.errors.full_messages, status: "500")