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

@ -36,7 +36,7 @@ GIT
GIT
remote: git://github.com/salama/salama.git
revision: 2842c903e19655beab7f5fcedeb59456e4e3f6c2
revision: c68577c3f4b77be495a9d4e161171356a611730f
specs:
salama (0.3.0)
salama-object-file (~> 0.3)

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