From 77c4afae16207a8a806162fa8b6418f329ad5fa3 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Sun, 2 Feb 2020 20:13:07 -0500 Subject: [PATCH] (no ticket) Propagate exception instead of rethrowing Client: cpp Patch: Gaurav Singh This closes #1999 --- lib/cpp/test/concurrency/ThreadFactoryTests.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cpp/test/concurrency/ThreadFactoryTests.h b/lib/cpp/test/concurrency/ThreadFactoryTests.h index febe3f8b3..23e46e3de 100644 --- a/lib/cpp/test/concurrency/ThreadFactoryTests.h +++ b/lib/cpp/test/concurrency/ThreadFactoryTests.h @@ -83,7 +83,7 @@ public: } catch (SystemResourceException& e) { std::cout << "\t\t\tfailed to create " << lix* count + tix << " thread " << e.what() << std::endl; - throw e; + throw; } } @@ -97,7 +97,7 @@ public: } catch (SystemResourceException& e) { std::cout << "\t\t\tfailed to start " << lix* count + tix << " thread " << e.what() << std::endl; - throw e; + throw; } }