I have an exception e, and I would like to transform it into a string which is exactly the same as the standard ruby output on the stderr when the exception is uncaught.
Initial code gives me incorrect order of the stacktrace, and indentation is not correct.
Rather than writing my own code, I’d like to see some “oneliner”. How do you do this?
This will be the same.
Or, using
e: