diff --git a/src/blupi.cxx b/src/blupi.cxx index 30b3e6f..a859e14 100644 --- a/src/blupi.cxx +++ b/src/blupi.cxx @@ -114,7 +114,10 @@ ReadConfig () { const auto config = GetBaseDir () + "data/config.json"; - std::ifstream file (config, std::ifstream::in); + std::ifstream file (config, std::ifstream::in); + if (!file) + return false; + nlohmann::json j; file >> j;