erlfmt icon indicating copy to clipboard operation
erlfmt copied to clipboard

Improve error_info() type

Open gomoripeti opened this issue 1 year ago • 0 comments

erlfmt_scan returns erl_anno:location() in errors however erlfmt_parse mostly returns full erlfmt_scan:anno() maps. The errors from the parser also surface in the return value of erlfmt:read_nodes[_string]

I noticed this via dialyzer when calling erlfmt_parse directly.

gomoripeti avatar Dec 21 '23 16:12 gomoripeti