config: fix error message if file not found

Fixes a wrong path, `/etc/hypr` -> `/etc/xdg`, and specifies the lookup
order.
This commit is contained in:
davc0n 2026-04-19 09:18:37 +02:00
parent d75e93f8ee
commit f19c06feb0

View file

@ -186,7 +186,7 @@ static std::expected<std::string, std::string> getMainConfigPath() {
if (PATHS.first.has_value())
return PATHS.first.value();
else
return std::unexpected{"Could not find config in HOME, XDG_CONFIG_HOME, XDG_CONFIG_DIRS or /etc/hypr."};
return std::unexpected{"Could not find config. Searched in order: XDG_CONFIG_HOME, HOME, XDG_CONFIG_DIRS, /etc/xdg"};
}
std::expected<std::string, std::string> CConfigManager::resolveConfigPath(std::optional<std::string_view> explicitPath) {