Skip to content

Commit

Permalink
Merge pull request #34 from heelhook/patch-1
Browse files Browse the repository at this point in the history
Show an error when an unknown option is used.
  • Loading branch information
maxdemarzi committed Mar 28, 2012
2 parents 5207643 + 373d390 commit 42346ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/neography/rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ def get_batch(args)
{:method => "GET", :to => "/index/node/#{args[1]}/#{args[2]}/#{args[3]}"}
when :get_relationship_index
{:method => "GET", :to => "/index/relationship/#{args[1]}/#{args[2]}/#{args[3]}"}
else
raise "Unknown option #{args[0]}"
end
end

Expand Down

0 comments on commit 42346ad

Please sign in to comment.