print the confdir value in the error message about not creating a non-default dir

This commit is contained in:
Jean-Francois Dockes 2022-06-01 17:24:15 +02:00
parent d127fbc738
commit 8bd1494fd3

View File

@ -254,8 +254,8 @@ RclConfig::RclConfig(const string *argcnf)
// this is the default conf
if (!autoconfdir && !isDefaultConfig()) {
if (!path_exists(m_confdir)) {
m_reason = "Explicitly specified configuration "
"directory must exist (won't be automatically created). Use mkdir first";
m_reason = std::string("Explicitly specified configuration [") + m_confdir +
"] directory must exist (won't be automatically created). Use mkdir first";
return;
}
}