adamdebreceni commented on a change in pull request #943:
URL: https://github.com/apache/nifi-minifi-cpp/pull/943#discussion_r532428911



##########
File path: libminifi/test/TestBase.cpp
##########
@@ -140,7 +140,7 @@ std::shared_ptr<core::Processor> 
TestPlan::addProcessor(const std::string &proce
 
   auto ptr = 
core::ClassLoader::getDefaultClassLoader().instantiate(processor_name, uuid);
   if (nullptr == ptr) {
-    throw std::exception();
+    throw std::runtime_error{fmt::format("Failed to instantiate processor 
name: {0} uuid: {1}", processor_name, uuid.to_string().c_str())};

Review comment:
       why the `.c_str()`?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to