From 9faebb6ceae75d6fa696c98de42282e990ca76e8 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Thu, 20 Nov 2025 11:54:18 -0800 Subject: [PATCH] container: plugins: root: fix example3()'s usage of throw handler The old macros should *not* have been used in any example; as they were intended for internal use only. This was noted in Doxygen ...by not noting them as publicly consumable. --- container/plugins/root/example.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/container/plugins/root/example.cc b/container/plugins/root/example.cc index c4ed7a1..6d6be48 100644 --- a/container/plugins/root/example.cc +++ b/container/plugins/root/example.cc @@ -108,7 +108,7 @@ void example2() //! \ingroup cpp_plugin_impl void example3() { - namespace common = ::dfi::macro::common; + namespace common = ::dfi::common; const std::string base{ common::get_env("global_basename") + " " @@ -122,10 +122,8 @@ void example3() auto exec_cmd = [&make_cmd](const std::string& cmd) { // shell 0 = success - THROW_IF( - common::exec("bash -i -c '" + make_cmd(cmd) + "'"), - std::runtime_error, - "command failed") + common::throw_ex_if( + common::exec("bash -i -c '" + make_cmd(cmd) + "'"), "command failed"); }; std::cout << "\nImporting journals...\n";