Fix trimming the stack message if it contains newlines
Fix trimming the stack message if it contains newlines

The previous code simply chopped off the first line of the stack which does not produce the desired result if the error message contains newlines.

lloydbenson/lab,lloydbenson/lab,lloydbenson/lab