Skip to content

Commit 6272b60

Browse files
author
José Valim
committed
Ensure all elixir dependencies are started before hand, closes #2542
1 parent 0c7699f commit 6272b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/src/elixir.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ config_change(_Changed, _New, _Remove) ->
5353
%% escript entry point
5454

5555
main(Args) ->
56-
ok = application:ensure_started(?MODULE),
56+
{ok, _} = application:ensure_all_started(?MODULE),
5757
'Elixir.Kernel.CLI':main(Args).
5858

5959
%% Boot and process given options. Invoked by Elixir's script.
6060

6161
start_cli() ->
62-
ok = application:ensure_started(?MODULE),
62+
{ok, _} = application:ensure_all_started(?MODULE),
6363
'Elixir.Kernel.CLI':main(init:get_plain_arguments()).
6464

6565
%% EVAL HOOKS

0 commit comments

Comments
 (0)