Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

htoad_transform should not hijack compilation errors and return forms…

… as is

so that the compiler could catch them
  • Loading branch information...
commit 4549bad4f6aa3ebc6a081ffecd8c4ec4429bebe8 1 parent bab5601
Yurii Rashkovskii authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 apps/htoad/src/htoad_transform.erl
View
6 apps/htoad/src/htoad_transform.erl
@@ -21,10 +21,8 @@
parse_transform(Forms, Options) ->
#context{ file = File } = parse_trans:initial_context(Forms, Options),
case erl_lint:module(Forms, File, [nowarn_unused_function,nowarn_unused_vars,nowarn_unused_record]) of
- {error, Errors, Warnings} ->
- (length(Warnings) > 0 andalso
- lager:debug("erl_lint warnings in ~s: ~p", [File, Warnings])),
- throw({erl_lint, Errors});
+ {error, _Errors, _Warnings} ->
+ Forms;
{ok, Warnings} when is_list(Warnings), length(Warnings) > 0 ->
lager:debug("erl_lint warnings in ~s: ~p", [File, Warnings]);
_ ->
Please sign in to comment.
Something went wrong with that request. Please try again.