Eno::Error » #message

message → string

Contains both the error text as well as the snippet. This is also what you get in the console when you don't catch the error.

rubybegin
  # ...
rescue Eno::Error => e
  e.message  #=> "In line 4 'a' is copied into itself.\n\n   Line | Content\n ..."
end

Return value

Both the error text as well as the snippet.