update salaam, catch errors on tick

otherwise those errors were silently ignored,
i guess because they were on a ui thread
This commit is contained in:
Torsten Ruger
2015-10-22 17:09:05 +03:00
parent feca6cfbee
commit 8cde7011ef
3 changed files with 7 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class ObjectView < ListView
variable = at.to_s
f = object.internal_object_get(at)
end
puts "got var name #{variable}#{variable.class} for #{at}, #{f}"
#puts "got var name #{variable}#{variable.class} for #{at}, #{f}"
view = RefView.new( variable , f.object_id , @z )
if( @children[at] )
replace_at(at , view)

View File

@ -22,7 +22,11 @@ class StatusView < ElementView
end
def update
@interpreter.tick
begin
@interpreter.tick
rescue => e
puts e
end
@element.at_css(".clock").text = clock_text
@element.at_css(".link").text = link_text
@element.at_css(".state").text = state_text