aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-11-14 10:21:59 +0100
committerHans Bolinder <[email protected]>2017-11-14 10:21:59 +0100
commit8eb324ba0b7e8bc70640a6d9258aac5a7f7be2a6 (patch)
tree718a626feb9d90e4a77207397e875ff870ea7454 /lib/dialyzer/src
parent19245b1ac7bf881319950adb973ff2ce24fea23e (diff)
parent8c42d5dc4f85d540c53cf24c85de6372c89ec486 (diff)
downloadotp-8eb324ba0b7e8bc70640a6d9258aac5a7f7be2a6.tar.gz
otp-8eb324ba0b7e8bc70640a6d9258aac5a7f7be2a6.tar.bz2
otp-8eb324ba0b7e8bc70640a6d9258aac5a7f7be2a6.zip
Merge branch 'maint'
* maint: 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),