Skip to content

Commit

Permalink
Show an error when an unknown option is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
pablof7z committed Mar 28, 2012
1 parent 5207643 commit 373d390
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 373d390

Please sign in to comment.