summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index f4e3b316f6..00fa762da6 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -1404,7 +1404,8 @@ class Matrix
begin
ret = obj.__send__(meth)
rescue Exception => e
- raise TypeError, "Coercion error: #{obj.inspect}.#{meth} => #{cls} failed:\n(#{e.message})"
+ raise TypeError, "Coercion error: #{obj.inspect}.#{meth} => #{cls} failed:\n" \
+ "(#{e.message})"
end
raise TypeError, "Coercion error: obj.#{meth} did NOT return a #{cls} (was #{ret.class})" unless ret.kind_of? cls
ret