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:
parent
feca6cfbee
commit
8cde7011ef
@ -36,7 +36,7 @@ GIT
|
|||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: git://github.com/salama/salama.git
|
remote: git://github.com/salama/salama.git
|
||||||
revision: 2842c903e19655beab7f5fcedeb59456e4e3f6c2
|
revision: c68577c3f4b77be495a9d4e161171356a611730f
|
||||||
specs:
|
specs:
|
||||||
salama (0.3.0)
|
salama (0.3.0)
|
||||||
salama-object-file (~> 0.3)
|
salama-object-file (~> 0.3)
|
||||||
|
@ -35,7 +35,7 @@ class ObjectView < ListView
|
|||||||
variable = at.to_s
|
variable = at.to_s
|
||||||
f = object.internal_object_get(at)
|
f = object.internal_object_get(at)
|
||||||
end
|
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 )
|
view = RefView.new( variable , f.object_id , @z )
|
||||||
if( @children[at] )
|
if( @children[at] )
|
||||||
replace_at(at , view)
|
replace_at(at , view)
|
||||||
|
@ -22,7 +22,11 @@ class StatusView < ElementView
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
@interpreter.tick
|
begin
|
||||||
|
@interpreter.tick
|
||||||
|
rescue => e
|
||||||
|
puts e
|
||||||
|
end
|
||||||
@element.at_css(".clock").text = clock_text
|
@element.at_css(".clock").text = clock_text
|
||||||
@element.at_css(".link").text = link_text
|
@element.at_css(".link").text = link_text
|
||||||
@element.at_css(".state").text = state_text
|
@element.at_css(".state").text = state_text
|
||||||
|
Loading…
x
Reference in New Issue
Block a user