From ba531a173d0dc6906f8492f3bfa0b2cd40e2951a Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Fri, 25 Sep 2015 12:40:14 +0200 Subject: typer: Fix a bug Instead of outputting a formatted message showing errors found, a core was (often) created. --- lib/typer/src/typer.erl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/typer/src/typer.erl b/lib/typer/src/typer.erl index ec00bfaba0..562530c868 100644 --- a/lib/typer/src/typer.erl +++ b/lib/typer/src/typer.erl @@ -1012,15 +1012,7 @@ compile_error(Reason) -> -spec msg(string()) -> 'ok'. msg(Msg) -> - case os:type() of - {unix, _} -> % Output a message on 'stderr', if possible - P = open_port({fd, 0, 2}, [out]), - port_command(P, Msg), - true = port_close(P), - ok; - _ -> % win32 - io:format("~s", [Msg]) - end. + io:format(standard_error, "~s", [Msg]). %%-------------------------------------------------------------------- %% Version and help messages. -- cgit v1.2.3