From 34d363f16601b284255bf0b68ae276e6c6962e76 Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Tue, 6 Dec 2022 18:20:30 +0300 Subject: [PATCH] Return an empty string instead of no_file atom --- src/aeso_fcode_to_fate.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/aeso_fcode_to_fate.erl b/src/aeso_fcode_to_fate.erl index 4faad6f..a6f5022 100644 --- a/src/aeso_fcode_to_fate.erl +++ b/src/aeso_fcode_to_fate.erl @@ -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