aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_release.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-11-09 18:22:20 -0600
committerTristan Sloughter <[email protected]>2014-11-09 19:50:35 -0600
commitbf953e417d0771583d95d4d6b6e2697ab44754d6 (patch)
tree2bb652df3be9f3e2b4187bf073672dad4f7dda10 /src/rlx_release.erl
parent64b946e351a92bd2686d0a4370c252a53eaa82bd (diff)
downloadrelx-bf953e417d0771583d95d4d6b6e2697ab44754d6.tar.gz
relx-bf953e417d0771583d95d4d6b6e2697ab44754d6.tar.bz2
relx-bf953e417d0771583d95d4d6b6e2697ab44754d6.zip
move back to using format_error/1
Diffstat (limited to 'src/rlx_release.erl')
-rw-r--r--src/rlx_release.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rlx_release.erl b/src/rlx_release.erl
index 7b82119..1d333bf 100644
--- a/src/rlx_release.erl
+++ b/src/rlx_release.erl
@@ -41,7 +41,7 @@
canonical_name/1,
format/1,
format/2,
- format_error/2]).
+ format_error/1]).
-export_type([t/0,
name/0,
@@ -217,14 +217,14 @@ format_goal({Constraint, AppType, AppInc}) ->
format_goal(Constraint) ->
rlx_depsolver:format_constraint(Constraint).
--spec format_error(Reason::term(), rlx_state:t()) -> iolist().
-format_error({topo_error, E}, State) ->
- rlx_topo:format_error(E, State);
-format_error({failed_to_parse, Con}, _) ->
+-spec format_error(Reason::term()) -> iolist().
+format_error({topo_error, E}) ->
+ rlx_topo:format_error(E);
+format_error({failed_to_parse, Con}) ->
io_lib:format("Failed to parse constraint ~p", [Con]);
-format_error({invalid_constraint, _, Con}, _) ->
+format_error({invalid_constraint, _, Con}) ->
io_lib:format("Invalid constraint specified ~p", [Con]);
-format_error({not_realized, Name, Vsn}, _) ->
+format_error({not_realized, Name, Vsn}) ->
io_lib:format("Unable to produce metadata release: ~p-~s has not been realized",
[Name, Vsn]).