Merge pull request #739 from basho/bugfix/error_when_string_version_not_found

Fix error printing for non-atom version names (versions are term()s, not only atoms).
This commit is contained in:
Christopher Meiklejohn 2015-02-17 13:52:15 -05:00
commit 658255c4db

View File

@ -715,7 +715,7 @@ check_node({_N, Version}) ->
true -> ok;
_ ->
lager:error("You don't have Riak ~s installed or configured", [Version]),
erlang:error("You don't have Riak " ++ atom_to_list(Version) ++ " installed or configured")
erlang:error(lists:flatten(io_lib:format("You don't have Riak ~p installed or configured", [Version])))
end.
set_backend(Backend) ->