Created
July 26, 2011 17:37
-
-
Save alloy/1107314 to your computer and use it in GitHub Desktop.
Workaround for the MacRuby bug where backtraces aren't printed in applications.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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