Revision 311eefcb src/cloud/occi/lib/occi-server.rb

View differences:

src/cloud/occi/lib/occi-server.rb
49 49

  
50 50
include OpenNebula
51 51

  
52
$occi_server = OCCIServer.new(CONFIGURATION_FILE, TEMPLATE_LOCATION)
52
begin
53
    $occi_server = OCCIServer.new(CONFIGURATION_FILE, TEMPLATE_LOCATION)
54
rescue Exception => e
55
    puts "Error starting server: #{e}"
56
    exit(-1)
57
end
53 58

  
54 59
if CloudServer.is_port_open?($occi_server.config[:server], 
55 60
                             $occi_server.config[:port])

Also available in: Unified diff