Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions truffle/src/main/ruby/core/exception.rb
Original file line number Diff line number Diff line change
@@ -41,10 +41,11 @@ def ==(other)
end

def to_s
if message.nil?
msg = message
if msg.nil?
self.class.to_s
else
message.to_s
msg.to_s
end
end

0 comments on commit 487ef40

Please sign in to comment.