Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WHY comment
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 :('
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment