aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-04-02 12:17:48 +0200
committerFredrik Gustafsson <[email protected]>2013-04-02 12:17:48 +0200
commit9b120d4291cc03d34cac5f6dec42e81bd63704af (patch)
treea4d788955c4c77f8136e714156641c130c608747
parent9a32ce6f80a22e8a683599ca8060255cd982d4df (diff)
parentb22ecf19e81baac844878afd896ebbdda4266a84 (diff)
downloadotp-9b120d4291cc03d34cac5f6dec42e81bd63704af.tar.gz
otp-9b120d4291cc03d34cac5f6dec42e81bd63704af.tar.bz2
otp-9b120d4291cc03d34cac5f6dec42e81bd63704af.zip
Merge branch 'mh/dialyzer-scan-error/OTP-10996' into maint
* mh/dialyzer-scan-error/OTP-10996: Improve Dialyzer output for scan errors
-rw-r--r--lib/dialyzer/src/dialyzer_analysis_callgraph.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
index 86618a4915..ca6b403ac9 100644
--- a/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
+++ b/lib/dialyzer/src/dialyzer_analysis_callgraph.erl
@@ -261,8 +261,8 @@ compile_and_store(Files, #analysis_state{codeserver = CServer,
dict:new(), NewFiles),
check_for_duplicate_modules(ModDict);
false ->
- Msg = io_lib:format("Could not scan the following file(s): ~p",
- [lists:flatten(Failed)]),
+ Msg = io_lib:format("Could not scan the following file(s):~n~s",
+ [[Reason || {_Filename, Reason} <- Failed]]),
exit({error, Msg})
end,
{T2, _} = statistics(runtime),