mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix error reporting in 'make options' on OTP24+
This commit is contained in:
parent
06147deccd
commit
991d52f019
@ -483,8 +483,12 @@ options_required([Form]) ->
|
|||||||
proplists:get_value(required, Opts, []).
|
proplists:get_value(required, Opts, []).
|
||||||
|
|
||||||
format_file(Path, Form) ->
|
format_file(Path, Form) ->
|
||||||
|
Line = case erl_syntax:get_pos(Form) of
|
||||||
|
{L, _} -> L;
|
||||||
|
L -> L
|
||||||
|
end,
|
||||||
filename:rootname(filename:basename(Path)) ++ ".erl:" ++
|
filename:rootname(filename:basename(Path)) ++ ".erl:" ++
|
||||||
integer_to_list(erl_syntax:get_pos(Form)).
|
integer_to_list(Line).
|
||||||
|
|
||||||
module(Path) ->
|
module(Path) ->
|
||||||
list_to_atom(filename:rootname(filename:basename(Path))).
|
list_to_atom(filename:rootname(filename:basename(Path))).
|
||||||
|
Loading…
Reference in New Issue
Block a user