浏览代码

throw builder error when returned from project build (#1909)

pull/1914/head
Tristan Sloughter 6 年前
提交者 GitHub
父节点
当前提交
1df574a6f5
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      src/rebar_prv_compile.erl

+ 6
- 2
src/rebar_prv_compile.erl 查看文件

@ -208,8 +208,12 @@ build_app(AppInfo, State) ->
%% load plugins since thats where project builders would be
PluginDepsPaths = rebar_state:code_paths(State, all_plugin_deps),
code:add_pathsa(PluginDepsPaths),
Module:build(AppInfo),
rebar_utils:remove_from_code_path(PluginDepsPaths);
case Module:build(AppInfo) of
ok ->
rebar_utils:remove_from_code_path(PluginDepsPaths);
{error, Reason} ->
throw({error, {Module, Reason}})
end;
_ ->
throw(?PRV_ERROR({unknown_project_type, rebar_app_info:name(AppInfo), Type}))
end

正在加载...
取消
保存