Navigation Menu

Skip to content

Commit

Permalink
Raise error instance correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 28, 2015
1 parent 02f10e3 commit 7ea8c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/cluster.rb
Expand Up @@ -153,7 +153,7 @@ def engine_nodes_status
def forward(message, destination)
receiver = destination["to"]
receiver_node_name = receiver.match(/\A[^:]+:\d+\/[^.]+/).to_s
raise NotStartedYet unless @engine_nodes
raise NotStartedYet.new unless @engine_nodes
@engine_nodes.each do |node|
if node.name == receiver_node_name
node.forward(message, destination)
Expand Down

0 comments on commit 7ea8c32

Please sign in to comment.