Skip to content

Commit

Permalink
rabbit_hipe:compile_to_directory/1 should coerce argument to list
Browse files Browse the repository at this point in the history
Elixir callers such as rabbitmq-cli may use a binary.

References rabbitmq/rabbitmq-cli#178.
  • Loading branch information
michaelklishin committed Mar 10, 2017
1 parent 0e2f2ad commit 5efbb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rabbit_hipe.erl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ hipe_compile() ->
hipe_compile(fun compile_and_load/1, false).

compile_to_directory(Dir0) ->
Dir = rabbit_file:filename_as_a_directory(Dir0),
Dir = rabbit_file:filename_as_a_directory(rabbit_data_coercion:to_list(Dir0)),
ok = prepare_ebin_directory(Dir),
hipe_compile(fun (Mod) -> compile_and_save(Mod, Dir) end, true).

Expand Down

0 comments on commit 5efbb89

Please sign in to comment.