Permalink
Browse files

duh, by_code only needs the code as an argument, it's returning a class

  • Loading branch information...
1 parent 671364a commit 1f4f9c65023dec04bac197eb216897f99d1c232a @slyphon slyphon committed Nov 9, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/zookeeper/keeper_exception.rb
  2. +1 −1 lib/zookeeper/version.rb
@@ -69,7 +69,7 @@ def self.recognized_code?(code)
ERROR_MAP.include?(code)
end
- def self.by_code(code, orig_caller)
+ def self.by_code(code)
ERROR_MAP.fetch(code.to_i) { raise "API ERROR: no exception defined for code: #{code}" }
end
end
View
@@ -1,4 +1,4 @@
module Zookeeper
- VERSION = '0.3.3.rc3'
+ VERSION = '0.3.3.rc4'
end

0 comments on commit 1f4f9c6

Please sign in to comment.