summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2020-07-17 19:05:15 +0300
committerMichael Klishin <michael@clojurewerkz.org>2020-07-17 19:05:15 +0300
commit8d020c27e06188de75609ddd0e56a98c8c46ef8c (patch)
treed188c4fa3404ed2439e93c33ed1aaeaa04975315
parent559f5a3bd4879e7e53e6412f0e5e7ceb087b9875 (diff)
downloadrabbitmq-server-git-8d020c27e06188de75609ddd0e56a98c8c46ef8c.tar.gz
Improve a couple of error messages
-rw-r--r--apps/rabbitmq_prelaunch/src/rabbit_prelaunch_errors.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_errors.erl b/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_errors.erl
index f04f252784..147ae07d18 100644
--- a/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_errors.erl
+++ b/apps/rabbitmq_prelaunch/src/rabbit_prelaunch_errors.erl
@@ -30,11 +30,11 @@ format_error({error, {invalid_dist_port_range, DistTcpPort}}) ->
"Invalid Erlang distribution TCP port: ~b", [DistTcpPort]);
format_error({error, {dist_port_already_used, Port, not_erlang, Host}}) ->
rabbit_misc:format(
- "ERROR: distribution port ~b in use on host ~s "
- "(by non-Erlang process?)", [Port, Host]);
+ "ERROR: could not bind to distribution port ~b on host ~s . It could be in use "
+ "by another process or cannot be bound to (e.g. due to a security policy)", [Port, Host]);
format_error({error, {dist_port_already_used, Port, Name, Host}}) ->
rabbit_misc:format(
- "ERROR: distribution port ~b in use by another node: ~s@~s", [Port, Name, Host]);
+ "ERROR: could not bind to distribution port ~b, it is in use by another node: ~s@~s", [Port, Name, Host]);
format_error({error, {erlang_dist_running_with_unexpected_nodename,
Unexpected, Node}}) ->
rabbit_misc:format(