From 8bd1494fd3161c4f138a68e393350edfb09dc49f Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 1 Jun 2022 17:24:15 +0200 Subject: [PATCH] print the confdir value in the error message about not creating a non-default dir --- src/common/rclconfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/rclconfig.cpp b/src/common/rclconfig.cpp index 15d8fe86..bddc575f 100644 --- a/src/common/rclconfig.cpp +++ b/src/common/rclconfig.cpp @@ -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; } }