From 3e29149ad1dfc69c6f250fa6fc85d097bac77207 Mon Sep 17 00:00:00 2001 From: Gerardwx Date: Sat, 26 Jan 2019 02:38:44 -0500 Subject: [PATCH] Change rethrow statements (#25) --- subprocess.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprocess.hpp b/subprocess.hpp index bdd3c3b..1d6fdb8 100755 --- a/subprocess.hpp +++ b/subprocess.hpp @@ -1208,7 +1208,7 @@ inline void Popen::execute_process() noexcept(false) } } catch (std::exception& exp) { stream_.cleanup_fds(); - throw exp; + throw; } } @@ -1364,7 +1364,7 @@ namespace detail { std::string err_msg(exp.what()); //ATTN: Can we do something on error here ? util::write_n(err_wr_pipe_, err_msg.c_str(), err_msg.length()); - throw exp; + throw; } // Calling application would not get this