1. Justin Sheehy
  2. riak


Kevin Smith  committed 7a6fffa

Fixed error parsing Erlang modfuns via HTTP

  • Participants
  • Parent commits a8cb88a
  • Branches default

Comments (0)

Files changed (1)

File apps/riak/src/riak_mapred_json.erl

View file
  • Ignore whitespace
         {ok, Module} ->
             case bin_to_atom(proplists:get_value(<<"function">>, StepDef)) of
                 {ok, Function} ->
-                    {modfun, Module, Function};
+                    {ok, {modfun, Module, Function}};
                 error ->
                     {error, ["Could not convert \"function\" field value"
                              " to an atom in:"