]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix something
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Jan 2002 14:49:51 +0000 (14:49 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Jan 2002 14:49:51 +0000 (14:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@5377 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/exceptions.cc

index 47d07c242b480bc46073eb87b34d1a89153f0836..9c5c7198a42657157fd845d4b63f0ff93f05eb2b 100644 (file)
@@ -209,8 +209,12 @@ namespace deal_II_exceptions
                                       // not aborted due to this
                                       // reason.
       if (std::uncaught_exception() == true)
-       std::cerr << "******** Program is not aborted since another exception is active! ********"
-                 << std::endl;
+       {
+                                          // only display message once
+         if (n_treated_exceptions == 0)
+           std::cerr << "******** Program is not aborted since another exception is active! ********"
+                     << std::endl;
+       }
       else
        std::abort ();
     };

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.