aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_depsolver.erl
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2014-11-03 13:02:18 -0800
committerJordan Wilberding <[email protected]>2014-11-03 13:02:18 -0800
commit9d550533bb1440e93f4a014cb6303f427a51f2dc (patch)
tree346016bc34896d7919806ee2e3fa05564c4283a1 /src/rlx_depsolver.erl
parent5368a5cd945aa3dd0723258cdad051aa8f7b4920 (diff)
parent04ea67a7eded3cc296e27ce1a9ae766a638035df (diff)
downloadrelx-9d550533bb1440e93f4a014cb6303f427a51f2dc.tar.gz
relx-9d550533bb1440e93f4a014cb6303f427a51f2dc.tar.bz2
relx-9d550533bb1440e93f4a014cb6303f427a51f2dc.zip
Merge pull request #236 from tsloughter/format_error2
Some changes for providers as I work on rebar3
Diffstat (limited to 'src/rlx_depsolver.erl')
-rw-r--r--src/rlx_depsolver.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rlx_depsolver.erl b/src/rlx_depsolver.erl
index f9dc73d..fd26145 100644
--- a/src/rlx_depsolver.erl
+++ b/src/rlx_depsolver.erl
@@ -269,7 +269,7 @@ parse_version(RawVsn)
erlang:is_binary(RawVsn) ->
ec_semver:parse(RawVsn);
parse_version(Vsn)
- when erlang:is_tuple(Vsn) ->
+ when erlang:is_tuple(Vsn) ; erlang:is_atom(Vsn) ->
Vsn.
%% @doc check that a specified constraint is a valid constraint.
@@ -351,6 +351,8 @@ format_culprits(Culprits) ->
%% @doc A formatted version tuple
-spec format_version(vsn()) -> iolist().
+format_version('NO_VSN') ->
+ "";
format_version(Version) ->
rlx_depsolver_culprit:format_version(Version).