lib/ffi/msgpack/msg_object.rb in ffi-msgpack-0.2.0 vs lib/ffi/msgpack/msg_object.rb in ffi-msgpack-0.2.1

- old
+ new

@@ -326,11 +326,11 @@ # The Ruby object. # # @return [MsgObject] # The new Msg Object. # - # @raise [ArgumentError] + # @raise [TypeError] # The object was not a {Hash}, {Array}, {String}, {Symbol}, {Float}, # {Integer}, `true`, `false` or `nil`. # # @since 0.2.0 # @@ -349,10 +349,10 @@ when TrueClass, FalseClass set_boolean!(value) when NilClass set_nil! else - raise(ArgumentError,"ambigious object to create MsgObject from: #{value.inspect}") + raise(TypeError,"ambigious object to create MsgObject from: #{value.inspect}") end return value end