aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2015-09-28 09:05:20 +0200
committerHans Bolinder <[email protected]>2015-09-28 09:05:20 +0200
commit51750b8bd4d4eb08aacd2ad2bb0ac13fd6d09746 (patch)
treea6cc71c8e0ed99d8510f34f64b6c31ed3fbdc931
parent7e273a48f4c710a6c8e899a5e550a2b60d0f507a (diff)
parent19d69f756a6742b35eecf614760078aa2ee69925 (diff)
downloadotp-51750b8bd4d4eb08aacd2ad2bb0ac13fd6d09746.tar.gz
otp-51750b8bd4d4eb08aacd2ad2bb0ac13fd6d09746.tar.bz2
otp-51750b8bd4d4eb08aacd2ad2bb0ac13fd6d09746.zip
Merge branch 'maint'
* maint: typer: Fix a bug
-rw-r--r--lib/typer/src/typer.erl10
1 files changed, 1 insertions, 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.