mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 12:27:13 +01:00
codetools: improved error message, when unit of include file is not known
git-svn-id: trunk@23906 -
This commit is contained in:
parent
ffd4e28b5c
commit
f778e14f09
@ -1533,9 +1533,14 @@ begin
|
||||
ClearCurCodeTool;
|
||||
MainCode:=GetMainCode(Code);
|
||||
if MainCode=nil then begin
|
||||
fErrorMsg:='TCodeToolManager.InitCurCodeTool MainCode=nil';
|
||||
if Code = nil then
|
||||
fErrorMsg := fErrorMsg + ' Code=nil';
|
||||
fErrorMsg:='TCodeToolManager.InitCurCodeTool Code=nil'
|
||||
else begin
|
||||
fErrorCode:=Code;
|
||||
FErrorLine:=1;
|
||||
FErrorColumn:=1;
|
||||
fErrorMsg:='unit of include file is not known (hint: open and explore unit first)';
|
||||
end;
|
||||
exit;
|
||||
end;
|
||||
if MainCode.Scanner=nil then begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user