From e1b293aedfa0625f4d91acf75470660e04442679 Mon Sep 17 00:00:00 2001 From: Anton Samokhvalov Date: Thu, 5 Jan 2023 00:50:01 +0300 Subject: [PATCH] Update ConfigManager.cpp (#30) --- src/config/ConfigManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 42e3fe6..6279c32 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -21,7 +21,7 @@ CConfigManager::CConfigManager() { if (g_pHyprpaper->m_szExplicitConfigPath.empty()) { Debug::log(CRIT, "No config file provided. Default config file `~/.config/hypr/hyprpaper.conf` couldn't be opened."); } else { - Debug::log(CRIT, "No config file provided. Specified file `%s` couldn't be opened.", configPath); + Debug::log(CRIT, "No config file provided. Specified file `%s` couldn't be opened.", configPath.c_str()); } exit(1); } @@ -208,4 +208,4 @@ std::string CConfigManager::trimPath(std::string path) { size_t pathStartIndex = path.find_first_not_of(" \t\r\n"); size_t pathEndIndex = path.find_last_not_of(" \t\r\n"); return path.substr(pathStartIndex, pathEndIndex - pathStartIndex + 1); -} \ No newline at end of file +}