Last active
November 13, 2017 20:08
-
-
Save pragtobgists/0d24edc25f5e3892d586ea3a05e173b1 to your computer and use it in GitHub Desktop.
WHY comment
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
def paint_control(event) | |
# some painting code | |
rescue => e | |
# Really important to rescue here. Failures that escape this method | |
# cause odd-ball hangs with no stacktraces. See #559 for an example. | |
puts "SWALLOWED PAINT EXCEPTION ON #{@obj} - go take care of it: " + e.to_s | |
puts 'Unfortunately we have to swallow it because it causes odd failures :(' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment