summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-06-19 14:01:11 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-06-19 14:01:11 +0100
commit5eb2935de9c40b2c3b369960a96eb817f2e502bb (patch)
tree415117b430c327d262a27fb7a50b6a5aa7460535 /src
parent4619ec0c663ff0083fa0e0039ff60cff22c4b709 (diff)
downloadrabbitmq-server-git-5eb2935de9c40b2c3b369960a96eb817f2e502bb.tar.gz
Don't explode if we have a file with 0 or 2+ Erlang terms. Also remove TODO, actually I don't think we can do better.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_prelaunch.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_prelaunch.erl b/src/rabbit_prelaunch.erl
index 4cc9cd12f1..bb93ebe95e 100644
--- a/src/rabbit_prelaunch.erl
+++ b/src/rabbit_prelaunch.erl
@@ -90,9 +90,9 @@ dist_port_set_check() ->
{none, none} -> ok;
_ -> rabbit_misc:quit(?DIST_PORT_CONFIGURED)
end;
- {error, _} ->
- %% TODO can we present errors more nicely here
- %% than after -config has failed?
+ {ok, _} ->
+ ok;
+ {error, X} ->
ok
end
end.