Skip to content

Instantly share code, notes, and snippets.

@alloy
Created July 26, 2011 17:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alloy/1107314 to your computer and use it in GitHub Desktop.
Save alloy/1107314 to your computer and use it in GitHub Desktop.
Workaround for the MacRuby bug where backtraces aren't printed in applications.
class ArgumentError
alias_method :original_message, :message
def message
"#{original_message}\n\t#{backtrace.join("\n\t")}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment