From fcbfe93fa7380964c3f15740a727cfe144c1e628 Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Tue, 26 Mar 2024 19:25:54 -0700 Subject: [PATCH] Fix typo for the raise statement 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" --- app/services/hyrax/lock_manager.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/hyrax/lock_manager.rb b/app/services/hyrax/lock_manager.rb index 2903b87294..ed12701b3b 100644 --- a/app/services/hyrax/lock_manager.rb +++ b/app/services/hyrax/lock_manager.rb @@ -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