Skip to content

Commit

Permalink
Handle "none" for line number
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed May 3, 2022
1 parent ba627f6 commit 9214ebf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sync_scanner.erl
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,9 @@ growl_format_errors(Errors, Warnings) ->
format_line(Line) when is_integer(Line) ->
"(Line " ++ integer_to_list(Line) ++ ")";
format_line({Line, Char}) ->
"(Line " ++ integer_to_list(Line) ++ ", Char " ++ integer_to_list(Char) ++ ")".
"(Line " ++ integer_to_list(Line) ++ ", Char " ++ integer_to_list(Char) ++ ")";
format_line(Other)->
io_lib:format("(Line: ~p)", [Other]).


process_hrl_file_lastmod([{File, LastMod}|T1], [{File, LastMod}|T2], SrcFiles, Patching) ->
Expand Down

0 comments on commit 9214ebf

Please sign in to comment.