mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 21:10:14 +02:00
* Restore display of exception type. fix issue #39811
(cherry picked from commit ecb4a0abca
)
This commit is contained in:
parent
280f507e22
commit
9b9ee443f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user