aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-11-10 15:00:33 +0100
committerHans Bolinder <[email protected]>2017-11-10 16:36:02 +0100
commitffd24a6d63b94c8871dc718204bc2cf805ceba73 (patch)
tree5fd0682ddbff59be0072f998570ee75798014ae1 /lib/dialyzer/src
parent3a7743aba0260f98d00ca3ea9176a23efe8197d5 (diff)
downloadotp-ffd24a6d63b94c8871dc718204bc2cf805ceba73.tar.gz
otp-ffd24a6d63b94c8871dc718204bc2cf805ceba73.tar.bz2
otp-ffd24a6d63b94c8871dc718204bc2cf805ceba73.zip
dialyzer: Display error messages without call stack
As of commit 12b379 many of the reasons displayed after "Analysis failed with error:" erroneously include a call stack. The bug is now corrected. The bug was pointed out in http://erlang.org/pipermail/erlang-questions/2017-October/093838.html.
Diffstat (limited to 'lib/dialyzer/src')
-rw-r--r--lib/dialyzer/src/dialyzer_analysis_callgraph.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
index a4b42c9367..9993c68fed 100644
--- a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
+++ b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
@@ -165,7 +165,11 @@ analysis_start(Parent, Analysis, LegalWarnings) ->
remote_type_postprocessing(TmpCServer, Args) ->
Fun = fun() ->
- exit(remote_type_postproc(TmpCServer, Args))
+ exit(try remote_type_postproc(TmpCServer, Args) of
+ R -> R
+ catch
+ throw:{error,_}=Error -> Error
+ end)
end,
{Pid, Ref} = erlang:spawn_monitor(Fun),
dialyzer_codeserver:give_away(TmpCServer, Pid),