1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

feature #495: Change error when VM log is not found

This commit is contained in:
Daniel Molina 2011-02-24 12:33:43 +01:00
parent c92baa6cd2
commit 0b1f69a8ad

View File

@ -195,8 +195,7 @@ class SunstoneServer
begin
log = File.read(vm_log_file)
rescue Exception => e
error = Error.new("Error: log for VM #{id} not available")
return [500, error.to_s]
return [200, "Log for VM #{id} not available"]
end
return [200, log]