aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_state.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-09-13 21:45:40 -0500
committerTristan Sloughter <[email protected]>2013-09-14 21:40:17 -0500
commitd61ea701c8acf2ad4102048e740f9eacd76b9687 (patch)
tree852e10953e646a33151131b14074d7b99c52a934 /src/rlx_state.erl
parent55f0f5aa4c25d21171113a75f91a37d12a4c78ee (diff)
downloadrelx-d61ea701c8acf2ad4102048e740f9eacd76b9687.tar.gz
relx-d61ea701c8acf2ad4102048e740f9eacd76b9687.tar.bz2
relx-d61ea701c8acf2ad4102048e740f9eacd76b9687.zip
fix crash instead of error message for bad target action
Diffstat (limited to 'src/rlx_state.erl')
-rw-r--r--src/rlx_state.erl4
1 files changed, 3 insertions, 1 deletions
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) ->