浏览代码

* Restore display of exception type. fix issue #39811

Michaël Van Canneyt 3 年之前
父节点
当前提交
ecb4a0abca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/test/units/convutils/tconv1.pp

+ 1 - 1
tests/test/units/convutils/tconv1.pp

@@ -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;