From 8e25a45cbbc3ba796e3cb4331c15a2914fa0e644 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 30 Aug 2015 13:39:38 -0500 Subject: update use of hooks and plugins with state in app_info --- src/rebar_base_compiler.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rebar_base_compiler.erl') diff --git a/src/rebar_base_compiler.erl b/src/rebar_base_compiler.erl index 7193003..31292af 100644 --- a/src/rebar_base_compiler.erl +++ b/src/rebar_base_compiler.erl @@ -31,8 +31,8 @@ -export([run/4, run/7, run/8, - ok_tuple/3, - error_tuple/5]). + ok_tuple/2, + error_tuple/4]). %% =================================================================== %% Public API @@ -69,10 +69,10 @@ run(Config, FirstFiles, SourceDir, SourceExt, TargetDir, TargetExt, simple_compile_wrapper(S, Target, Compile3Fn, C, CheckLastMod) end). -ok_tuple(_Config, Source, Ws) -> +ok_tuple(Source, Ws) -> {ok, format_warnings(Source, Ws)}. -error_tuple(_Config, Source, Es, Ws, Opts) -> +error_tuple(Source, Es, Ws, Opts) -> {error, format_errors(Source, Es), format_warnings(Source, Ws, Opts)}. -- cgit v1.1