Skip to content

Instantly share code, notes, and snippets.

@whylom
Created March 19, 2012 22:19
Show Gist options
  • Save whylom/2127639 to your computer and use it in GitHub Desktop.
Save whylom/2127639 to your computer and use it in GitHub Desktop.
Snippet to get a stack trace string from an Exception
"#{error.message}\n#{error.backtrace.join("\n")}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment