aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rlx_prv_release.erl4
-rw-r--r--src/rlx_state.erl2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/rlx_prv_release.erl b/src/rlx_prv_release.erl
index 0e0a00d..7e8304b 100644
--- a/src/rlx_prv_release.erl
+++ b/src/rlx_prv_release.erl
@@ -96,7 +96,9 @@ find_default_release(State, DepGraph) ->
{undefined, Vsn} ->
?RLX_ERROR({no_release_name, Vsn});
{RelName, RelVsn} ->
- solve_release(State, DepGraph, RelName, RelVsn)
+ solve_release(State, DepGraph, RelName, RelVsn);
+ undefined ->
+ ?RLX_ERROR(no_releases_in_system)
catch
{multiple_release_names, _, _}=Error ->
?RLX_ERROR(Error)
diff --git a/src/rlx_state.erl b/src/rlx_state.erl
index ebe6f33..267d9fe 100644
--- a/src/rlx_state.erl
+++ b/src/rlx_state.erl
@@ -301,7 +301,7 @@ update_realized_release(M=#state_t{realized_releases=Releases}, Release) ->
Releases)}.
-spec default_configured_release(t()) -> {rlx_release:name() | undefined,
- rlx_release:vsn() | undefined}.
+ rlx_release:vsn() | undefined} | default.
default_configured_release(#state_t{default_configured_release=Def}) ->
Def.