diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-10-31 16:18:51 +0000 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-10-31 16:18:51 +0000 |
| commit | b5a761c9ac6c05ed9aee8c7ae7fa95a533f90514 (patch) | |
| tree | 3a5c460ef5c52d5ebe0c71c33ff86fdf2b05eddc /src | |
| parent | f21d5c370557dac41288b672ff9b5921db5fbb93 (diff) | |
| download | rabbitmq-server-git-b5a761c9ac6c05ed9aee8c7ae7fa95a533f90514.tar.gz | |
refactor
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_control.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl index 11638ee981..850c79f42f 100644 --- a/src/rabbit_control.erl +++ b/src/rabbit_control.erl @@ -169,8 +169,8 @@ action(stop, Node, Args, _Opts, Inform) -> case {Res, Args} of {ok, [PidFile]} -> wait_for_process_death( read_pid_file(PidFile, false)); - {_, []} -> ok; - _ -> exit({badarg, Args}) + {ok, [_, _| _]} -> exit({badarg, Args}); + _ -> ok end, Res; @@ -398,7 +398,7 @@ read_pid_file(PidFile, Wait) -> S = string:strip(binary_to_list(Bin), right, $\n), try list_to_integer(S) catch error:badarg -> - exit({error, {garbage_in_pid_file, S}}) + exit({error, {garbage_in_pid_file, PidFile}}) end, S; {{error, enoent}, true} -> |
