redis-rb icon indicating copy to clipboard operation
redis-rb copied to clipboard

NilValue Error on `.dup`

Open rjrobinson opened this issue 10 years ago • 0 comments

Kind of found an odd error to track down.

in the redis.rb file.

Starting at line 49

def initialize(options = {})
    @options = options.dup
    @original_client = @client = Client.new(options)

    super() # Monitor#initialize
  end

The .dup method throws a NilValue for dup error if there is not a redis.yml (rails app) that has the params that it is looking for. Though totally my error, Would you be interested in having this raise a Undefined Environment error?

Though this was a minor error. It took considerable time for a few of us.

rjrobinson avatar Nov 16 '15 13:11 rjrobinson