summaryrefslogtreecommitdiff
path: root/src/rebar_lfe_compiler.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <essen@dev-extend.eu>2012-03-18 15:41:57 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-03-18 18:46:04 +0100
commit2c37270f5244143463ad1e348ebdbae4b0fcf8a6 (patch)
tree386ae2f4eac988c60d8261225e10392054129b87 /src/rebar_lfe_compiler.erl
parent9d5557b16f4f4a1175b68984f6d7fab2db016c93 (diff)
Fix badarg crashes on missing dependency errors
Diffstat (limited to 'src/rebar_lfe_compiler.erl')
-rw-r--r--src/rebar_lfe_compiler.erl20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/rebar_lfe_compiler.erl b/src/rebar_lfe_compiler.erl
index 66b5140..d2c2dfe 100644
--- a/src/rebar_lfe_compiler.erl
+++ b/src/rebar_lfe_compiler.erl
@@ -48,17 +48,15 @@ compile(Config, _AppFile) ->
compile_lfe(Source, _Target, Config) ->
case code:which(lfe_comp) of
non_existing ->
- ?ERROR(<<
- "~n"
- "*** MISSING LFE COMPILER ***~n"
- " You must do one of the following:~n"
- " a) Install LFE globally in your erl libs~n"
- " b) Add LFE as a dep for your project, eg:~n"
- " {lfe, \"0.6.1\",~n"
- " {git, \"git://github.com/rvirding/lfe\",~n"
- " {tag, \"v0.6.1\"}}}~n"
- "~n"
- >>, []),
+ ?ERROR("~n"
+ "*** MISSING LFE COMPILER ***~n"
+ " You must do one of the following:~n"
+ " a) Install LFE globally in your erl libs~n"
+ " b) Add LFE as a dep for your project, eg:~n"
+ " {lfe, \"0.6.1\",~n"
+ " {git, \"git://github.com/rvirding/lfe\",~n"
+ " {tag, \"v0.6.1\"}}}~n"
+ "~n", []),
?FAIL;
_ ->
Opts = [{i, "include"}, {outdir, "ebin"}, report]