aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-11-14 10:12:12 +0100
committerHans Bolinder <[email protected]>2017-11-14 10:12:12 +0100
commit8c42d5dc4f85d540c53cf24c85de6372c89ec486 (patch)
tree41c012d77562b22f0f159be9d81f4354e4d0db3b /lib/dialyzer/src
parentcde4ddc0494c9cdc8169dbc552e0e9b91c3a1b30 (diff)
parentffd24a6d63b94c8871dc718204bc2cf805ceba73 (diff)
downloadotp-8c42d5dc4f85d540c53cf24c85de6372c89ec486.tar.gz
otp-8c42d5dc4f85d540c53cf24c85de6372c89ec486.tar.bz2
otp-8c42d5dc4f85d540c53cf24c85de6372c89ec486.zip
Merge branch 'hasse/dialyzer/fix_crash_msg/OTP-14742' into maint
* hasse/dialyzer/fix_crash_msg/OTP-14742: dialyzer: Display error messages without call stack
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),