summaryrefslogtreecommitdiff
path: root/src/rebar_otp_app.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-11-08 09:15:09 -0600
committerTristan Sloughter <t@crashfast.com>2014-11-08 09:15:09 -0600
commit1ff904f39a07416a6739bd97b8f94c504e1587d0 (patch)
tree31636216efcf35f2e907197745e50437f0ad0d0a /src/rebar_otp_app.erl
parentfd9f88b98a554030c8cb285b918f416811f06d04 (diff)
handle throw by relx
Diffstat (limited to 'src/rebar_otp_app.erl')
-rw-r--r--src/rebar_otp_app.erl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rebar_otp_app.erl b/src/rebar_otp_app.erl
index 14a01d7..e1a1eab 100644
--- a/src/rebar_otp_app.erl
+++ b/src/rebar_otp_app.erl
@@ -68,7 +68,7 @@ compile(Config, App) ->
{ok, rebar_app_info:original_vsn(App1, AppVsn)}
end;
{error, Reason} ->
- ?ABORT("Failed to load app file ~s: ~p\n", [AppFile, Reason])
+ ?ABORT("Failed to load app file ~s: ~p", [AppFile, Reason])
end.
clean(_Config, File) ->
@@ -102,7 +102,7 @@ info_help(Description) ->
"~s.~n"
"~n"
"Valid rebar.config options:~n"
- " ~p~n",
+ " ~p",
[
Description,
{validate_app_modules, true}
@@ -139,17 +139,17 @@ preprocess(Config, Dir, AppSrcFile) ->
{Config2, AppFile};
{error, Reason} ->
- ?ABORT("Failed to read ~s for preprocessing: ~p\n",
+ ?ABORT("Failed to read ~s for preprocessing: ~p",
[AppSrcFile, Reason])
end.
load_app_vars(Config) ->
case rebar_state:get(Config, app_vars_file, undefined) of
undefined ->
- ?DEBUG("No app_vars_file defined.\n", []),
+ ?DEBUG("No app_vars_file defined.", []),
[];
Filename ->
- ?INFO("Loading app vars from ~p\n", [Filename]),
+ ?INFO("Loading app vars from ~p", [Filename]),
{ok, Vars} = file:consult(Filename),
Vars
end.
@@ -169,12 +169,12 @@ validate_name(AppName, File) ->
ok;
false ->
?ERROR("Invalid ~s: name of application (~p) "
- "must match filename.\n", [File, AppName]),
+ "must match filename.", [File, AppName]),
?FAIL
end.
validate_modules(_Dir, AppName, undefined) ->
- ?ERROR("Missing modules declaration in ~p.app~n", [AppName]),
+ ?ERROR("Missing modules declaration in ~p.app", [AppName]),
?FAIL;
validate_modules(Dir, AppName, Mods) ->
@@ -189,10 +189,10 @@ validate_modules(Dir, AppName, Mods) ->
[] ->
ok;
MissingBeams ->
- Msg1 = lists:flatten([io_lib:format("\t* ~p\n", [M]) ||
+ Msg1 = lists:flatten([io_lib:format("\t* ~p", [M]) ||
M <- MissingBeams]),
?ERROR("One or more modules listed in ~p.app are not "
- "present in ebin/*.beam:\n~s", [AppName, Msg1]),
+ "present in ebin/*.beam:~n~s", [AppName, Msg1]),
?FAIL
end,