FpDebug: fix handling errors in watch result. In case of error an incorrect data type may be given. WatchResData would not be set (not to value, nor error). Issue #41646

(cherry picked from commit 0dfc1da04c)
This commit is contained in:
Martin 2025-05-17 12:31:36 +02:00
parent 90cfc9ed17
commit c067bd336e

View File

@ -886,7 +886,7 @@ begin
//skRegister: ;
//skAddress: ;
else begin
if IsError(AnFpValue.LastError) then // will be handled after the case
if not IsError(AnFpValue.LastError) then // will be handled after the case
AnResData.CreateError('Unknown data');
Result := True;
end;