remove rescues, better stracktraces

which is funny, because i added the rescues because i wasn’t getting
traces
something changed, possibly opal
This commit is contained in:
Torsten Ruger 2015-11-05 11:43:23 +02:00
parent 30eed9274e
commit 919b31ed3d

View File

@ -43,22 +43,14 @@ class StatusView < ElementView
end
def run
return unless @running
begin
proc = Proc.new do
self.update
self.run
end
proc.after( @running )
rescue => e
puts e
proc = Proc.new do
self.update
self.run
end
proc.after( @running )
end
def update
begin
@interpreter.tick
rescue => e
puts e
end
@interpreter.tick
@element.at_css(".clock").text = clock_text
@element.at_css(".state").text = state_text
@element.at_css(".flags").text = flags_text