Skip to content

Instantly share code, notes, and snippets.

@alloy
Created June 19, 2011 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alloy/1034552 to your computer and use it in GitHub Desktop.
Save alloy/1034552 to your computer and use it in GitHub Desktop.
# Adjust accordingly for the type of exception being raised.
class NoMethodError
alias_method :_message, :message
def message
"#{_message}\t\n#{backtrace.join("\t\n")}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment