The Exception#full_message method returns a formatted string of the exception.
The string contains escape sequences too.
It was proposed that escape sequences should be excluded from the error message.
Nobuyoshi Nakada said that since Exception#full_message is expected to return
the message printed to stderr, escape sequences are intentional.
Benoit Daloze suggested that we can provide an option to disable escape sequences and it was approved.
Ruby 2.6.0
Ruby 2.6.0 provides highlight option to the Exception#full_message method to exclude escape sequences.
The order argument provides options to place the error message and the
innermost backtrace come at the top or the bottom of the result returned by Exception#full_message.
The order value must be either :top or :bottom.
Let's set a backtrace for an error object and try order option for Exception#full_message method.
Hope you use these options with Exception#full_message to debug ruby applications.