feat(client): throw when we don't have required resources files
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