lib/swing_helpers.rb in sensible-cinema-0.23.6 vs lib/swing_helpers.rb in sensible-cinema-0.24.0
- old
+ new
@@ -39,10 +39,14 @@
add_action_listener do |e|
begin
block.call
rescue Exception => e
puts 'got fatal exception thrown in button [ignoring]', e, e.class
+ if $VERBOSE
+ puts e.backtrace, e
+ else
puts e.backtrace[0], e
+ end
end
end
self
end