Less redundant error message

This commit is contained in:
Hans Svensson
2019-09-05 15:28:03 +02:00
parent 47b3b9bcca
commit f07d1904ba
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ file(File, Options0) ->
{ok, Bin} -> from_string(Bin, [{src_file, File} | Options]);
{error, Error} ->
Msg = lists:flatten([File,": ",file:format_error(Error)]),
Pos = aeso_errors:pos(File, 0, 0),
Pos = aeso_errors:pos(0, 0),
{error, [aeso_errors:new(file_error, Pos, Msg)]}
end.