diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2011-08-17 16:16:00 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-08-17 16:16:00 +0100 |
| commit | fe620a6c2849cd0ca1922b72f3bbd0c913de1a13 (patch) | |
| tree | 24684ff8520322de4b724fcdbca4d88d2b063e3e /src | |
| parent | 9ad33199a63a94a9eb274eeda193adce541ae868 (diff) | |
| download | rabbitmq-server-git-fe620a6c2849cd0ca1922b72f3bbd0c913de1a13.tar.gz | |
In Erlang 'Ye Olde Versiony', you can't just call 'error'
Diffstat (limited to 'src')
| -rw-r--r-- | src/mirrored_supervisor.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mirrored_supervisor.erl b/src/mirrored_supervisor.erl index 0d0b430c42..e273470fd9 100644 --- a/src/mirrored_supervisor.erl +++ b/src/mirrored_supervisor.erl @@ -237,7 +237,7 @@ start_link({local, SupName}, Group, Mod, Args) -> start_link0([{local, SupName}], Group, init(Mod, Args)); start_link({global, _SupName}, _Group, _Mod, _Args) -> - error(badarg). + erlang:error(badarg). start_link0(Prefix, Group, Init) -> case apply(?SUPERVISOR, start_link, @@ -251,7 +251,7 @@ init(Mod, Args) -> case Mod:init(Args) of {ok, {{Bad, _, _}, _ChildSpecs}} when Bad =:= simple_one_for_one orelse - Bad =:= simple_one_for_one_terminate -> error(badarg); + Bad =:= simple_one_for_one_terminate -> erlang:error(badarg); Init -> Init end. |
