[erlang-questions] [BUG?] superfluous values for io:format cause process to block

Vlad Dumitrescu <>
Sun Jul 29 11:48:16 CEST 2007


On 7/29/07, Matej Kosik <> wrote:
>         t22() ->
>             io:format("DEBUG before~n"),
>             io:format("", [whatever]),
>             io:format("DEBUG after~n").

What happens is that the second io:format crashes the process. Try it
in the shell and you'll see the exact error: the format string can't
be empty. You might want to have a "~w" instead.

best regards,

More information about the erlang-questions mailing list