aboutsummaryrefslogtreecommitdiffstats
path: root/lib/typer/src/typer_options.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2011-02-06 16:11:00 +0200
committerKostis Sagonas <[email protected]>2011-02-06 16:11:00 +0200
commit80407de34665df19cc8c34fb361ae179d1e3bb70 (patch)
tree3e637a57a0f7c4a139803c9e1c4a43bd469159e9 /lib/typer/src/typer_options.erl
parente906d3c423425139081d5c1e3683815d6ddcdceb (diff)
downloadotp-80407de34665df19cc8c34fb361ae179d1e3bb70.tar.gz
otp-80407de34665df19cc8c34fb361ae179d1e3bb70.tar.bz2
otp-80407de34665df19cc8c34fb361ae179d1e3bb70.zip
Delete typer_map.erl file
Diffstat (limited to 'lib/typer/src/typer_options.erl')
-rw-r--r--lib/typer/src/typer_options.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/typer/src/typer_options.erl b/lib/typer/src/typer_options.erl
index 9545c7334b..b041052cd2 100644
--- a/lib/typer/src/typer_options.erl
+++ b/lib/typer/src/typer_options.erl
@@ -72,7 +72,7 @@ cl(["--no_spec"|Opts]) -> {no_spec, Opts};
cl(["--plt",Plt|Opts]) -> {{plt, Plt}, Opts};
cl(["-D"++Def|Opts]) ->
case Def of
- "" -> typer:error("no variable name specified after -D");
+ "" -> typer:fatal_error("no variable name specified after -D");
_ ->
DefPair = process_def_list(re:split(Def, "=", [{return, list}])),
{{def, DefPair}, Opts}
@@ -80,19 +80,19 @@ cl(["-D"++Def|Opts]) ->
cl(["-I",Dir|Opts]) -> {{inc, Dir}, Opts};
cl(["-I"++Dir|Opts]) ->
case Dir of
- "" -> typer:error("no include directory specified after -I");
+ "" -> typer:fatal_error("no include directory specified after -I");
_ -> {{inc, Dir}, Opts}
end;
cl(["-T"|Opts]) ->
{Files, RestOpts} = dialyzer_cl_parse:collect_args(Opts),
case Files of
- [] -> typer:error("no file or directory specified after -T");
+ [] -> typer:fatal_error("no file or directory specified after -T");
[_|_] -> {{trusted, Files}, RestOpts}
end;
cl(["-r"|Opts]) ->
{Files, RestOpts} = dialyzer_cl_parse:collect_args(Opts),
{{files_r, Files}, RestOpts};
-cl(["-"++H|_]) -> typer:error("unknown option -"++H);
+cl(["-"++H|_]) -> typer:fatal_error("unknown option -"++H);
cl(Opts) ->
{Files, RestOpts} = dialyzer_cl_parse:collect_args(Opts),
{{files, Files}, RestOpts}.
@@ -141,7 +141,7 @@ analyze_result(no_spec, Args, Analysis) ->
-spec mode_error() -> no_return().
mode_error() ->
- typer:error("can not do \"show\", \"show-exported\", \"annotate\", and \"annotate-inc-files\" at the same time").
+ typer:fatal_error("can not do \"show\", \"show-exported\", \"annotate\", and \"annotate-inc-files\" at the same time").
-spec version_message() -> no_return().
version_message() ->