Skip to content
Snippets Groups Projects
Commit 288513a0 authored by Stéphane Poirier's avatar Stéphane Poirier
Browse files

Add context info when reporting plugin error loading

parent 2864a0ea
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
// DEPENDENCIES // DEPENDENCIES
// ============================================================================ // ============================================================================
#include <iostream> #include <iostream>
#include <yat/utils/String.h>
#include <yat/plugin/PlugIn.h> #include <yat/plugin/PlugIn.h>
#include <yat/plugin/PlugInSymbols.h> #include <yat/plugin/PlugInSymbols.h>
#include <yat/plugin/IPlugInObjectWithAttr.h> #include <yat/plugin/IPlugInObjectWithAttr.h>
...@@ -80,7 +81,8 @@ PlugInBase::Symbol PlugInBase::find_symbol(const std::string &symbol) ...@@ -80,7 +81,8 @@ PlugInBase::Symbol PlugInBase::find_symbol(const std::string &symbol)
} }
THROW_YAT_ERROR("SHAREDLIBRARY_ERROR", THROW_YAT_ERROR("SHAREDLIBRARY_ERROR",
"Unable to find the requested symbol", SFormat("Unable to find the requested symbol '{}'"
" while loading library file {}") % symbol % m_libraryName,
"PlugInBase::find_symbol"); "PlugInBase::find_symbol");
return NULL; // keep compiler happy return NULL; // keep compiler happy
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment