if Is_Predefined_File_Name (Fname) then
Error_Msg_Unit_1 := Uname_Actual;
Error_Msg
- ("$$ is not a language defined unit", Load_Msg_Sloc);
+ ("$$ is not a language defined unit",
+ Load_Msg_Sloc,
+ Error_Node);
else
Error_Msg_File_1 := Fname;
Error_Msg_Unit_1 := Uname_Actual;
- Error_Msg ("file{ does not contain unit$", Load_Msg_Sloc);
+ Error_Msg
+ ("file{ does not contain unit$",
+ Load_Msg_Sloc,
+ Error_Node);
end if;
Write_Dependency_Chain;
end if;
if Present (Error_Node) then
- Error_Msg ("circular unit dependency", Load_Msg_Sloc);
+ Error_Msg
+ ("circular unit dependency", Load_Msg_Sloc, Error_Node);
Write_Dependency_Chain;
else
Load_Stack.Decrement_Last;
then
Error_Msg_File_1 := Unit_File_Name (Corr_Body);
Error_Msg
- ("cannot compile subprogram in file {!", Load_Msg_Sloc);
+ ("cannot compile subprogram in file {!",
+ Load_Msg_Sloc,
+ Error_Node);
Error_Msg_File_1 := Unit_File_Name (Unum);
Error_Msg
("\incorrect spec in file { must be removed first!",
- Load_Msg_Sloc);
+ Load_Msg_Sloc,
+ Error_Node);
Unum := No_Unit;
goto Done;
end if;
Error_Msg_Unit_1 := Uname_Actual;
Error_Msg -- CODEFIX
- ("$$ is not a predefined library unit", Load_Msg_Sloc);
+ ("$$ is not a predefined library unit",
+ Load_Msg_Sloc,
+ Error_Node);
else
Error_Msg_File_1 := Fname;
if Src_Ind = No_Access_To_Source_File then
- Error_Msg ("no read access to file{", Load_Msg_Sloc);
+ Error_Msg
+ ("no read access to file{",
+ Load_Msg_Sloc,
+ Error_Node
+ );
else
- Error_Msg ("file{ not found", Load_Msg_Sloc);
+ Error_Msg ("file{ not found", Load_Msg_Sloc, Error_Node);
end if;
end if;