lib/vnctools/server.rb in vnctools-0.0.7 vs lib/vnctools/server.rb in vnctools-0.0.8
- old
+ new
@@ -33,9 +33,10 @@
if display
server(display, *launch_arguments)
else
output = server(*launch_arguments)
@display = output[/desktop is #{host}(\S+)/, 1]
+ @display or raise Error, "could not find display in #{output.inspect}"
end
end
def stop(force = false)
server "-kill", display.to_s