소스 검색

Detect missing EPMD, error, fallback and advise.

pull/691/head
Fred Hebert 9 년 전
부모
커밋
28a3f9849b
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. +8
    -2
      src/rebar_prv_shell.erl

+ 8
- 2
src/rebar_prv_shell.erl 파일 보기

@ -157,13 +157,19 @@ setup_name(State) ->
{undefined, undefined} ->
ok;
{Name, undefined} ->
net_kernel:start([Name, longnames]);
check_epmd(net_kernel:start([Name, longnames]));
{undefined, SName} ->
net_kernel:start([SName, shortnames]);
check_epmd(net_kernel:start([SName, shortnames]));
{_, _} ->
?ABORT("Cannot have both short and long node names defined", [])
end.
check_epmd({error,{{shutdown, {_,net_kernel,{'EXIT',nodistribution}}},_}}) ->
?ERROR("Erlang Distribution failed, falling back to nonode@nohost. "
"Verify that epmd is running and try again.",[]);
check_epmd(_) ->
ok.
find_apps_to_boot(State) ->
%% Try the shell_apps option
case rebar_state:get(State, shell_apps, undefined) of

불러오는 중...
취소
저장