diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-29 22:42:30 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-29 22:42:30 +0200 |
commit | 89878a056bc5c46e54a8df43f6f2969e05f8045c (patch) | |
tree | 195d5431b57d588bc0e99772aea53455f3cbad22 /lib/efl/evas.rb | |
parent | 19b9118fccb1766fa55fd920853c7e2767816969 (diff) | |
download | ffi-efl-89878a056bc5c46e54a8df43f6f2969e05f8045c.zip ffi-efl-89878a056bc5c46e54a8df43f6f2969e05f8045c.tar.gz |
fix ArgumentError in various constructors
Diffstat (limited to 'lib/efl/evas.rb')
-rw-r--r-- | lib/efl/evas.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb index 2b4e61d..e54b07f 100644 --- a/lib/efl/evas.rb +++ b/lib/efl/evas.rb @@ -58,7 +58,7 @@ module Efl when FFI::Pointer FFI::AutoPointer.new o, method(:free) else - raise ArgumentError.new "#{o.class} valid argument" + raise ArgumentError.new "wrong argument #{o.class.name}" end ) yield self if block_given? @@ -115,7 +115,7 @@ module Efl when FFI::Pointer FFI::AutoPointer.new o, method(:free) else - raise ArgumentError.new "#{o.class} valid argument" + raise ArgumentError.new "wrong argument #{o.class.name}" end ) yield self if block_given? |