Skip to content

Commit

Permalink
build: removed erroneous rubocop enabled rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrandahl committed Sep 3, 2024
1 parent db00323 commit 3799409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def create

render_error_page(e, e.message, status)
end
# rubocop:enable Metrics/MethodLength, Metrics/PerceivedComplexity
# rubocop:enable Metrics/MethodLength

def use_compact_json?
non_compact_formats.exclude?(request.format)
Expand All @@ -56,7 +56,7 @@ def render_error_page(err, message, status, template = 'ppd/error')
@message = message

# log the error with as much detail as possible in development to aid in resolving the issue
message = "#{err.class.name} error #{uuid} ::: #{message} ::: #{err.class}" if Rails.env.development?
@message = "#{err.class.name} error: #{message}" if Rails.env.development?

# Keep it simple silly in production!
Rails.logger.error message
Expand Down

0 comments on commit 3799409

Please sign in to comment.