From d61ea701c8acf2ad4102048e740f9eacd76b9687 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 13 Sep 2013 21:45:40 -0500 Subject: fix crash instead of error message for bad target action --- src/rlx_state.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rlx_state.erl') diff --git a/src/rlx_state.erl b/src/rlx_state.erl index d03631d..65b0565 100644 --- a/src/rlx_state.erl +++ b/src/rlx_state.erl @@ -106,7 +106,9 @@ %% API %%============================================================================ %% @doc Create a new 'log level' for the system --spec new(proplists:proplist(), [atom()]) -> t(). +-spec new(proplists:proplist(), undefined | [atom()]) -> t(). +new(PropList, undefined) -> + new(PropList, [release]); new(PropList, Targets) when erlang:is_list(PropList), erlang:is_list(Targets) -> -- cgit v1.2.3