Update ConfigManager.cpp (#30)

This commit is contained in:
Anton Samokhvalov 2023-01-05 00:50:01 +03:00 committed by GitHub
parent c68cc7b926
commit e1b293aedf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}