lib/redlock.rb in redlock-1.1.0 vs lib/redlock.rb in redlock-1.2.0
- old
+ new
@@ -1,7 +1,11 @@
require 'redlock/version'
module Redlock
autoload :Client, 'redlock/client'
- LockError = Class.new(StandardError)
+ class LockError < StandardError
+ def initialize(resource)
+ super "failed to acquire lock on '#{resource}'".freeze
+ end
+ end
end