Return an empty string instead of no_file atom

This commit is contained in:
Gaith Hallak 2022-12-06 18:20:30 +03:00
parent 141eea74fd
commit 34d363f166

View File

@ -761,7 +761,10 @@ dbgloc(Env, Ann) ->
case proplists:get_value(debug_info, Env#env.options, false) of
false -> [];
true ->
File = proplists:get_value(file, Ann),
File = case proplists:get_value(file, Ann) of
no_file -> "";
F -> F
end,
Line = proplists:get_value(line, Ann),
Col = proplists:get_value(col, Ann),
case {Line, Col} of