Commits

Anonymous committed 7a6fffa

Fixed error parsing Erlang modfuns via HTTP

  • Participants
  • Parent commits a8cb88a

Comments (0)

Files changed (1)

File apps/riak/src/riak_mapred_json.erl

         {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:"