lib/punchblock/component/component_node.rb in punchblock-2.3.0 vs lib/punchblock/component/component_node.rb in punchblock-2.3.1
- old
+ new
@@ -51,9 +51,12 @@
def complete_event=(other)
return if @complete_event_resource.set_yet?
client.delete_component_registration self if client
complete!
@complete_event_resource.resource = other
+ rescue StateMachine::InvalidTransition => e
+ e.message << " for component #{self}"
+ raise e
end
##
# Create a Rayo stop message
#