Skip to content

Commit

Permalink
Merge pull request #17 from basho/djr-fix-net-kernel-error
Browse files Browse the repository at this point in the history
Use ~w instead of ~s to avoid bad argument errors from io:format
  • Loading branch information
dreverri committed Jul 16, 2012
2 parents cdc4a38 + 806fa63 commit ec6ffbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/check_node.erl
Expand Up @@ -32,14 +32,14 @@ run(Options, NonOptArgs) ->
{error, unknown_check} ->
unknown("Unkown check ~s", [Check]);
{error, Reason} ->
unknown("Could not run check: ~s", [Reason])
unknown("Could not run check: ~w", [Reason])
end;
{error, false} ->
critical("Could not connect to ~s with cookie ~s", [Node, Cookie]);
{error, ignored} ->
unknown("net_kernel:connect/1 reports ~s is not alive", [Name]);
{error, Reason} ->
unknown("net_kernel:start/1 failed: ~s", [Reason])
unknown("net_kernel:start/1 failed: ~w", [Reason])
end.

connect(Name, Node, Cookie) ->
Expand Down

0 comments on commit ec6ffbd

Please sign in to comment.