mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 05:40:38 +01:00
fixed message
git-svn-id: trunk@3834 -
This commit is contained in:
parent
0fe94142e3
commit
b16aaa377f
@ -1061,7 +1061,8 @@ begin
|
|||||||
NewPos.Code:=FindUnitSource(UnitName,UnitInFilename);
|
NewPos.Code:=FindUnitSource(UnitName,UnitInFilename);
|
||||||
if NewPos.Code=nil then
|
if NewPos.Code=nil then
|
||||||
RaiseExceptionInstance(
|
RaiseExceptionInstance(
|
||||||
ECodeToolUnitNotFound.Create(Self,ctsUnitNotFound,UnitName));
|
ECodeToolUnitNotFound.Create(Self,Format(ctsUnitNotFound,[UnitName]),
|
||||||
|
UnitName));
|
||||||
NewPos.X:=1;
|
NewPos.X:=1;
|
||||||
NewPos.Y:=1;
|
NewPos.Y:=1;
|
||||||
NewTopLine:=1;
|
NewTopLine:=1;
|
||||||
@ -3060,7 +3061,8 @@ begin
|
|||||||
if NewCodeTool=nil then begin
|
if NewCodeTool=nil then begin
|
||||||
MoveCursorToCleanPos(UnitNameAtom.StartPos);
|
MoveCursorToCleanPos(UnitNameAtom.StartPos);
|
||||||
RaiseExceptionInstance(
|
RaiseExceptionInstance(
|
||||||
ECodeToolUnitNotFound.Create(Self,ctsUnitNotFound,
|
ECodeToolUnitNotFound.Create(Self,
|
||||||
|
Format(ctsUnitNotFound,[GetAtom(UnitNameAtom)]),
|
||||||
GetAtom(UnitNameAtom)));
|
GetAtom(UnitNameAtom)));
|
||||||
end else if NewCodeTool=Self then begin
|
end else if NewCodeTool=Self then begin
|
||||||
MoveCursorToCleanPos(UnitNameAtom.StartPos);
|
MoveCursorToCleanPos(UnitNameAtom.StartPos);
|
||||||
@ -3259,7 +3261,7 @@ begin
|
|||||||
// no source found
|
// no source found
|
||||||
CurPos.StartPos:=-1;
|
CurPos.StartPos:=-1;
|
||||||
RaiseExceptionInstance(
|
RaiseExceptionInstance(
|
||||||
ECodeToolUnitNotFound.Create(Self,ctsUnitNotFound,AnUnitName));
|
ECodeToolUnitNotFound.Create(Self,Format(ctsUnitNotFound,[AnUnitName]),AnUnitName));
|
||||||
end else if NewCode=TCodeBuffer(Scanner.MainCode) then begin
|
end else if NewCode=TCodeBuffer(Scanner.MainCode) then begin
|
||||||
// Searching again in hidden unit
|
// Searching again in hidden unit
|
||||||
writeln('WARNING: Searching again in hidden unit: "',NewCode.Filename,'"');
|
writeln('WARNING: Searching again in hidden unit: "',NewCode.Filename,'"');
|
||||||
@ -3275,7 +3277,8 @@ begin
|
|||||||
if NewCodeTool=nil then begin
|
if NewCodeTool=nil then begin
|
||||||
CurPos.StartPos:=-1;
|
CurPos.StartPos:=-1;
|
||||||
RaiseExceptionInstance(
|
RaiseExceptionInstance(
|
||||||
ECodeToolUnitNotFound.Create(Self,ctsUnitNotFound,AnUnitName));
|
ECodeToolUnitNotFound.Create(Self,Format(ctsUnitNotFound,[AnUnitName]),
|
||||||
|
AnUnitName));
|
||||||
end;
|
end;
|
||||||
end else if NewCode=TCodeBuffer(Scanner.MainCode) then begin
|
end else if NewCode=TCodeBuffer(Scanner.MainCode) then begin
|
||||||
NewCodeTool:=Self;
|
NewCodeTool:=Self;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user