summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Meadows-Jönsson <eric.meadows.jonsson@gmail.com>2018-06-13 22:25:30 +0200
committerEric Meadows-Jönsson <eric.meadows.jonsson@gmail.com>2018-06-13 22:25:30 +0200
commitf6635214074f1f41fb4394b972188b5ee0d502fa (patch)
tree13b727b28e566f1d07123625b84012b03824fa52
parentb53d7398e28a08666e7f973db3f29a3722f521e3 (diff)
downloadelixir-emj/improve-deadlock-message.tar.gz
Add instructions for fixing deadlock errorsemj/improve-deadlock-message
-rw-r--r--lib/elixir/lib/kernel/parallel_compiler.ex5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/elixir/lib/kernel/parallel_compiler.ex b/lib/elixir/lib/kernel/parallel_compiler.ex
index 538330ba4..9ff7d9425 100644
--- a/lib/elixir/lib/kernel/parallel_compiler.ex
+++ b/lib/elixir/lib/kernel/parallel_compiler.ex
@@ -441,7 +441,10 @@ defmodule Kernel.ParallelCompiler do
IO.puts([" ", String.pad_leading(file, max), " => " | inspect(mod)])
end
- IO.puts("")
+ IO.puts(
+ "\nEnsure there are no compile-time dependencies between those files " <>
+ "and that the modules they reference exist and are correctly named.\n"
+ )
for {file, _, description} <- deadlock, do: {Path.absname(file), nil, description}
end