aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_prv_release.erl
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2014-06-23 16:07:02 +0200
committerJordan Wilberding <[email protected]>2014-06-23 16:07:02 +0200
commit82d0a9571fe30bec1722849bd9b9988856a95ec0 (patch)
tree89212cad842a6850bd927411ff14a2aa460885c2 /src/rlx_prv_release.erl
parent884e227ba2da04fc5a0a2b1ec71ccc27c781ecf3 (diff)
parentd67d1aac3aebd63a14c367db66483388a08e9379 (diff)
downloadrelx-82d0a9571fe30bec1722849bd9b9988856a95ec0.tar.gz
relx-82d0a9571fe30bec1722849bd9b9988856a95ec0.tar.bz2
relx-82d0a9571fe30bec1722849bd9b9988856a95ec0.zip
Merge pull request #200 from tsloughter/no_rel_error_msg
provide useful error message when no release to build is found
Diffstat (limited to 'src/rlx_prv_release.erl')
-rw-r--r--src/rlx_prv_release.erl4
1 files changed, 3 insertions, 1 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)