diff options
author | Hans Bolinder <[email protected]> | 2015-09-28 09:03:11 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2015-09-28 09:03:11 +0200 |
commit | 19d69f756a6742b35eecf614760078aa2ee69925 (patch) | |
tree | 2e14cedb57157235479ecb868e663997ee08c97d | |
parent | 7fb90f21d37ed0f3d4853e79deb3f641a00d43d0 (diff) | |
parent | ba531a173d0dc6906f8492f3bfa0b2cd40e2951a (diff) | |
download | otp-19d69f756a6742b35eecf614760078aa2ee69925.tar.gz otp-19d69f756a6742b35eecf614760078aa2ee69925.tar.bz2 otp-19d69f756a6742b35eecf614760078aa2ee69925.zip |
Merge branch 'hb/typer/fix_bug/OTP-13010' into maint
* hb/typer/fix_bug/OTP-13010:
typer: Fix a bug
-rw-r--r-- | lib/typer/src/typer.erl | 10 |
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. |