You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2020/02/06 22:06:31 UTC

[thrift] branch master updated: (no ticket) Propagate exception instead of rethrowing Client: cpp Patch: Gaurav Singh

This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 77c4afa  (no ticket) Propagate exception instead of rethrowing Client: cpp Patch: Gaurav Singh
77c4afa is described below

commit 77c4afae16207a8a806162fa8b6418f329ad5fa3
Author: Gaurav Singh <ga...@gmail.com>
AuthorDate: Sun Feb 2 20:13:07 2020 -0500

    (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 febe3f8..23e46e3 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;
         }
       }