Skip to content
Snippets Groups Projects
Commit 11b8faaa authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Improve error message on plugging loading failure

parent 350c1c05
No related branches found
No related tags found
No related merge requests found
Pipeline #2026 passed
#include <utils/PluginsLoader.hpp> #include <utils/PluginsLoader.hpp>
#include <utils/ConsoleManager.hpp> #include <utils/ConsoleManager.hpp>
#include <utils/Demangle.hpp>
#include <dlfcn.h> #include <dlfcn.h>
...@@ -40,7 +41,7 @@ PluginsLoader::_open(const std::string& plugin) ...@@ -40,7 +41,7 @@ PluginsLoader::_open(const std::string& plugin)
} else { } else {
std::cerr << " *" << rang::fgB::red << "cannot load " << rang::fg::reset << '\"' << rang::fgB::yellow << plugin std::cerr << " *" << rang::fgB::red << "cannot load " << rang::fg::reset << '\"' << rang::fgB::yellow << plugin
<< rang::fg::reset << "\"\n"; << rang::fg::reset << "\"\n";
std::cerr << " " << rang::fgB::magenta << dlerror() << rang::fg::reset << '\n'; std::cerr << " " << rang::fgB::magenta << demangle(dlerror()) << rang::fg::reset << '\n';
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment