datasource_cache: display correctly the error message

This commit is contained in:
Vross 2013-10-21 19:24:51 +02:00 committed by Dane Springmeyer
parent cb04fc0b34
commit 771964a770

View file

@ -89,11 +89,11 @@ datasource_ptr datasource_cache::create(parameters const& params)
s += *type + "'";
if (plugin_directories_.empty())
{
s + " (no datasource plugin directories have been successfully registered)";
s += " (no datasource plugin directories have been successfully registered)";
}
else
{
s + " (searched for datasource plugins in '" + plugin_directories() + "')";
s += " (searched for datasource plugins in '" + plugin_directories() + "')";
}
throw config_error(s);
}