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 +}