MXS-1929: Report runtime module loading errors to users
If a module is not found, a proper error message is now given to the user. Other system errors are also printed if errno is set. Dynamic library errors aren't printed as they are apparently reset after a call to `dlerror`, at least according to documentation.
This commit is contained in:
@ -124,8 +124,8 @@ static std::pair<bool, MXS_CONFIG_PARAMETER*> load_defaults(const char* name,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MXS_ERROR("Failed to load module '%s'. See previous error messages for "
|
config_runtime_error("Failed to load module '%s': %s", name,
|
||||||
"more details.", name);
|
errno ? mxs_strerror(errno) : "See MaxScale logs for details");
|
||||||
}
|
}
|
||||||
|
|
||||||
return {rval, params};
|
return {rval, params};
|
||||||
|
Reference in New Issue
Block a user