diff options
| author | h2so5 <[email protected]> | 2013-04-11 19:47:35 +0900 |
|---|---|---|
| committer | h2so5 <[email protected]> | 2013-04-11 19:47:35 +0900 |
| commit | 1f571dd5fcc9705c59cb782fce2d8589f4349ca8 (patch) | |
| tree | 7a5dfadea0007a113dbd901a27ddb52127c3c924 /mrbgems/mruby-array-ext/mrblib | |
| parent | 9f3aca8f790f70a324790c518897b0ceb8b52a42 (diff) | |
| download | mruby-1f571dd5fcc9705c59cb782fce2d8589f4349ca8.tar.gz mruby-1f571dd5fcc9705c59cb782fce2d8589f4349ca8.zip | |
Fix TypeError messages
Diffstat (limited to 'mrbgems/mruby-array-ext/mrblib')
| -rw-r--r-- | mrbgems/mruby-array-ext/mrblib/array.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-array-ext/mrblib/array.rb b/mrbgems/mruby-array-ext/mrblib/array.rb index b3ff9bfca..65ea717d2 100644 --- a/mrbgems/mruby-array-ext/mrblib/array.rb +++ b/mrbgems/mruby-array-ext/mrblib/array.rb @@ -20,7 +20,7 @@ class Array end def -(elem) - raise TypeError, "can't convert to Array" unless elem.class == Array + raise TypeError, "can't convert #{elem.class.to_s} into Array" unless elem.class == Array hash = {} array = [] @@ -30,14 +30,14 @@ class Array end def |(elem) - raise TypeError, "can't convert to Array" unless elem.class == Array + raise TypeError, "can't convert #{elem.class.to_s} into Array" unless elem.class == Array ary = self + elem ary.uniq! or ary end def &(elem) - raise TypeError, "can't convert to Array" unless elem.class == Array + raise TypeError, "can't convert #{elem.class.to_s} into Array" unless elem.class == Array hash = {} array = [] |
