mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-25 23:21:29 +03:00
B OpenNebula/one#796: show error message (#24)
This commit is contained in:
parent
3f31b7f5c6
commit
a0e382fdca
@ -773,7 +773,9 @@ class ServiceLCM
|
||||
|
||||
if !rc[0]
|
||||
role.set_state(Role::STATE[error_state])
|
||||
break OpenNebula::Error.new("Error deploying role #{name}")
|
||||
break OpenNebula::Error.new(
|
||||
"Error deploying role #{name}: #{rc[1]}"
|
||||
)
|
||||
end
|
||||
|
||||
role.set_state(Role::STATE[success_state])
|
||||
@ -802,7 +804,9 @@ class ServiceLCM
|
||||
|
||||
if !rc[0]
|
||||
role.set_state(Role::STATE[error_state])
|
||||
break OpenNebula::Error.new("Error undeploying role #{name}")
|
||||
break OpenNebula::Error.new(
|
||||
"Error undeploying role #{name}: #{rc[1]}"
|
||||
)
|
||||
end
|
||||
|
||||
role.set_state(Role::STATE[success_state])
|
||||
|
Loading…
Reference in New Issue
Block a user