Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
crash if 'old-style' ezic.app.src file detected
Browse files Browse the repository at this point in the history
  • Loading branch information
drfloob committed Mar 7, 2013
1 parent 48dc3a2 commit 8ba228b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ezic_app.erl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
%% OTP design principles as a supervision tree, this means starting the %% OTP design principles as a supervision tree, this means starting the
%% top supervisor of the tree. %% top supervisor of the tree.
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------

%% TODO: remove by 2013.09.07 (6 months from today), to allow time for
%% the transition
start(_Type, [_]) ->
erlang:error("Failed transition to v0.3.0: See Pull Request: https://github.com/drfloob/ezic/pull/15");
start(_Type, _StartArgs) -> start(_Type, _StartArgs) ->
{ok, DbMod} = application:get_env(db_mod), {ok, DbMod} = application:get_env(db_mod),
case ezic_sup:start_link(DbMod) of case ezic_sup:start_link(DbMod) of
{ok, Pid} -> {ok, Pid} ->
{ok, Pid}; {ok, Pid};
Expand Down

0 comments on commit 8ba228b

Please sign in to comment.