Converter: debug messages for the fall-bakc replacement.

git-svn-id: trunk@41968 -
This commit is contained in:
juha 2013-07-02 13:21:00 +00:00
parent 1cc1c541af
commit 219041d762

View File

@ -542,6 +542,7 @@ begin
repeat
CodeOk:=True;
try
DebugLn('TDelphiUnit.CopyAndLoadFile: Creating UsedUnitsTool');
// Create a tool for missing units.
fUsedUnitsTool:=TUsedUnitsTool.Create(fCTLink, fOrigUnitFilename);
except
@ -550,6 +551,7 @@ begin
if CodeFixed then
Raise // There was a second exception -> we are doomed!
else begin
DebugLn('TDelphiUnit.CopyAndLoadFile exception: Replacing .type -> .&type');
with fPascalBuffer do
Source:=StringReplace(Source,'.type','.&type',[rfReplaceAll]);
CodeOk := False;