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";