From f77a09ca77c8c3008da5a5c26385813755b4b069 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 10 Jan 2002 14:49:51 +0000 Subject: [PATCH] Fix something git-svn-id: https://svn.dealii.org/trunk@5377 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/exceptions.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deal.II/base/source/exceptions.cc b/deal.II/base/source/exceptions.cc index 47d07c242b..9c5c7198a4 100644 --- a/deal.II/base/source/exceptions.cc +++ b/deal.II/base/source/exceptions.cc @@ -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 (); }; -- 2.39.5