Unverified Commit 95ab987e authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

throw useful error when Backend library fails to initialize (#1002)

* throw useful error when Backend library fails to initialize

* add dlerror to error message when opening backend shared lib
parent d4d56986
......@@ -52,6 +52,15 @@ void* runtime::Backend::open_shared_library(const string& type)
{
create();
}
else
{
throw runtime_error("Failed to find create_backend function in library '" + name + "'");
}
}
else
{
string err = dlerror();
throw runtime_error("Failed to find Backend library '" + name + "'\n" + err);
}
return handle;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment