diff options
author | Loïc Hoguin <essen@dev-extend.eu> | 2012-03-18 15:41:57 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-03-18 18:46:04 +0100 |
commit | 2c37270f5244143463ad1e348ebdbae4b0fcf8a6 (patch) | |
tree | 386ae2f4eac988c60d8261225e10392054129b87 | |
parent | 9d5557b16f4f4a1175b68984f6d7fab2db016c93 (diff) |
Fix badarg crashes on missing dependency errors
-rw-r--r-- | src/rebar_abnfc_compiler.erl | 4 | ||||
-rw-r--r-- | src/rebar_erlydtl_compiler.erl | 4 | ||||
-rw-r--r-- | src/rebar_lfe_compiler.erl | 20 | ||||
-rw-r--r-- | src/rebar_neotoma_compiler.erl | 4 |
4 files changed, 15 insertions, 17 deletions
diff --git a/src/rebar_abnfc_compiler.erl b/src/rebar_abnfc_compiler.erl index db9e029..5bad8c0 100644 --- a/src/rebar_abnfc_compiler.erl +++ b/src/rebar_abnfc_compiler.erl @@ -85,12 +85,12 @@ compile_abnfc(Source, _Target, Config) -> case abnfc_is_present() of false -> ?ERROR( - <<"~n===============================================~n" + "~n===============================================~n" " You need to install abnfc to compile ABNF grammars~n" " Download the latest tarball release from github~n" " https://github.com/nygge/abnfc~n" " and install it into your erlang library dir~n" - "===============================================~n~n">>, []), + "===============================================~n~n", []), ?FAIL; true -> AbnfcOpts = abnfc_opts(Config), diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl index 664b0f3..936c70a 100644 --- a/src/rebar_erlydtl_compiler.erl +++ b/src/rebar_erlydtl_compiler.erl @@ -114,12 +114,12 @@ compile_dtl(Source, Target, Config) -> case code:which(erlydtl) of non_existing -> ?ERROR( - <<"~n===============================================~n" + "~n===============================================~n" " You need to install erlydtl to compile DTL templates~n" " Download the latest tarball release from github~n" " http://code.google.com/p/erlydtl/~n" " and install it into your erlang library dir~n" - "===============================================~n~n">>, []), + "===============================================~n~n", []), ?FAIL; _ -> case needs_compile(Source, Target, Config) of 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] diff --git a/src/rebar_neotoma_compiler.erl b/src/rebar_neotoma_compiler.erl index 46b77b0..a1712bf 100644 --- a/src/rebar_neotoma_compiler.erl +++ b/src/rebar_neotoma_compiler.erl @@ -75,12 +75,12 @@ compile_neo(Source, Target, Config) -> case code:which(neotoma) of non_existing -> ?ERROR( - <<"~n===============================================~n" + "~n===============================================~n" " You need to install neotoma to compile PEG grammars~n" " Download the latest tarball release from github~n" " https://github.com/seancribbs/neotoma~n" " and install it into your erlang library dir~n" - "===============================================~n~n">>, []), + "===============================================~n~n", []), ?FAIL; _ -> case needs_compile(Source, Target, Config) of |