codetools: fixed error msg

git-svn-id: trunk@54674 -
This commit is contained in:
mattias 2017-04-21 21:24:20 +00:00
parent 01f25f27ce
commit e42d0903e0

View File

@ -1787,8 +1787,8 @@ var
DirtyPos: Integer;
ErrorDirTool: TCompilerDirectivesTree;
begin
fErrorMsg:=AnException.Message;
ClearError;
fErrorMsg:=AnException.Message;
if (AnException is ELinkScannerError) then begin
// link scanner error
if AnException is ELinkScannerConsistency then