mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-16 17:53:08 +09:00
feature #495: Change error when VM log is not found
This commit is contained in:
1 parent
c92baa6cd2
commit
0b1f69a8ad
1 file changed
+1
-2
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user