* Restore display of exception type. fix issue #39811

This commit is contained in:
Michaël Van Canneyt 2022-06-25 14:49:44 +02:00
parent b2ad1d3efd
commit ecb4a0abca

View File

@ -326,7 +326,7 @@ begin
except
// D7: Exception EZeroDivide uzero has a factor of zero.
on E: EZeroDivide do if Verbose then writeln(E.ClassName,': ',E.Message,' [as expected]');
else LogError({$I %CurrentRoutine%}, {$I %Line%},'Expected EZeroDivde, got another type of Exception');
on Ex: Exception do LogError({$I %CurrentRoutine%}, {$I %Line%},'Expected EZeroDivide, got another type of Exception: '+Ex.ClassName);
end;
if Verbose then writeln({$I %CurrentRoutine%},' end.');
if Verbose then writeln;