From 2c37270f5244143463ad1e348ebdbae4b0fcf8a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 18 Mar 2012 15:41:57 +0100 Subject: Fix badarg crashes on missing dependency errors --- src/rebar_lfe_compiler.erl | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/rebar_lfe_compiler.erl') 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] -- cgit v1.1