Dialyzed!
This commit is contained in:
parent
aa6d56ce9b
commit
236ef6eb89
@ -289,7 +289,7 @@ parse(Text, Options) ->
|
||||
ErrorString = io_lib:format("Ambiguous ~p", [As]),
|
||||
parse_error(Pos, ErrorString);
|
||||
%% Include error
|
||||
{error, {Pos, {include_error, File}}} ->
|
||||
{error, {Pos, include_error, File}} ->
|
||||
parse_error(Pos, io_lib:format("could not find include file '~s'", [File]))
|
||||
end.
|
||||
|
||||
|
@ -493,7 +493,7 @@ expand_includes([{include, S = {string, _, File}} | AST], Acc, Opts) ->
|
||||
Err
|
||||
end;
|
||||
{error, _} ->
|
||||
{error, {get_pos(S), {include_error, File}}}
|
||||
{error, {get_pos(S), include_error, File}}
|
||||
end;
|
||||
expand_includes([E | AST], Acc, Opts) ->
|
||||
expand_includes(AST, [E | Acc], Opts).
|
||||
|
Loading…
x
Reference in New Issue
Block a user