evan/memcached — Issue #75: TypeError on unexpected return code
Author: gcampbell
Created: 2011-12-06 21:48:09+00:00
State: open

The following line (currently line 613 in lib/memcached/memcached.rb) will attempt to raise nil if EXCEPTIONS[ret] doesn't exist, which results in a TypeError: "exception class/object expected". I'd like to submit a patch that will instead raise a more informative Memcached::Error that includes the unexpected code in the message.

```ruby
raise EXCEPTIONS[ret], message
```