Browse Source

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 years ago
parent
commit
44cd238825
1 changed files with 2 additions and 6 deletions
  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"");