mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-20 03:38:06 +02:00
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:
parent
d75e93f8ee
commit
f19c06feb0
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue