lib/punchblock/component/component_node.rb in punchblock-1.9.2 vs lib/punchblock/component/component_node.rb in punchblock-1.9.3
- old
+ new
@@ -65,10 +65,10 @@
##
# Sends a Rayo stop message for the current component
#
def stop!(options = {})
- raise InvalidActionError, "Cannot stop a #{self.class.name.split("::").last} that is not executing" unless executing?
+ raise InvalidActionError, "Cannot stop a #{self.class.name.split("::").last} that is #{state}" unless executing?
stop_action.tap { |action| write_action action }
end
end
end
end