Skip to content

Commit

Permalink
Fix typo for the raise statement
Browse files Browse the repository at this point in the history
This commit fixes a typo in the raise statement. In Bulkrax, the error
seen was "NoMethodError - undefined method `/' for "Failed to aquire a
lock from Redlock due to a Redis connection ":String"
  • Loading branch information
kirkkwang authored and tamsin woo committed Mar 27, 2024
1 parent 04ed898 commit fcbfe93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/hyrax/lock_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def lock(key)
rescue ConnectionPool::TimeoutError => err
Hyrax.logger.error(err.message)
raise(ConnectionPool::TimeoutError,
"Failed to aquire a lock from Redlock due to a Redis connection " /
"timeout: #{err}. If you are using Redis via `ConnectionPool` " /
"Failed to acquire a lock from Redlock due to a Redis connection " \
"timeout: #{err}. If you are using Redis via `ConnectionPool` " \
"you may wish to increase the pool size.")
end

Expand Down

0 comments on commit fcbfe93

Please sign in to comment.