浏览代码

Operation completion message after synchronization running over checklist was shown as an error

Because ESshTerminate was rethrown as EFatal.
Caused by 0de5a4124

Source commit: 3ea09e85fa0d32acdcc3b677d9158193af93a65c
Martin Prikryl 7 年之前
父节点
当前提交
44cd238825
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      source/core/Exceptions.cpp

+ 2 - 6
source/core/Exceptions.cpp

@@ -496,9 +496,9 @@ Exception * __fastcall CloneException(Exception * E)
 void __fastcall RethrowException(Exception * E)
 {
   // this list has to be in sync with ExceptionMessage
-  if (dynamic_cast<EFatal *>(E) != NULL)
+  if (dynamic_cast<ExtException *>(E) != NULL)
   {
-    throw EFatal(E, L"");
+    dynamic_cast<ExtException *>(E)->Rethrow();
   }
   else if (dynamic_cast<ECallbackGuardAbort *>(E) != NULL)
   {
@@ -512,10 +512,6 @@ void __fastcall RethrowException(Exception * E)
   {
     // noop, should never get here
   }
-  else if (dynamic_cast<ExtException *>(E) != NULL)
-  {
-    dynamic_cast<ExtException *>(E)->Rethrow();
-  }
   else
   {
     throw ExtException(E, L"");