Skip to content

Commit d20f641

Browse files
committed
Switch error location, as per review comments
1 parent 331e08d commit d20f641

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/clique_writer.erl

+3-2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ write(Status, Format) ->
6161
[{Format, Module}] ->
6262
Module:write(Status);
6363
[] ->
64-
io:format("Invalid format ~p! Defaulting to human-readable:~n", [Format]),
65-
clique_human_writer:write(Status)
64+
Error = io_lib:format("Invalid format ~p! Defaulted to human-readable.~n", [Format]),
65+
Output = clique_human_writer:write(Status),
66+
[Output, "\n", Error]
6667
end.

0 commit comments

Comments
 (0)