mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(client): throw when we don't have required resources files
This commit is contained in:
parent
2e1f8b2fc5
commit
2c2a0473f4
@ -41,6 +41,9 @@ waybar::Client::Client(int argc, char* argv[])
|
||||
"/etc/xdg/waybar/style.css",
|
||||
"./resources/style.css",
|
||||
});
|
||||
if (css_file.empty() || config_file.empty()) {
|
||||
throw std::runtime_error("Missing required resources files");
|
||||
}
|
||||
std::cout << "Resources files: " + config_file + ", " + css_file << std::endl;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user