diff --git a/implementations/Crafter.Build-Project.cpp b/implementations/Crafter.Build-Project.cpp index 0a231ed..ed34629 100644 --- a/implementations/Crafter.Build-Project.cpp +++ b/implementations/Crafter.Build-Project.cpp @@ -38,8 +38,13 @@ namespace Crafter { std::cout << "bruh3" << std::endl; std::ifstream f(this->path); std::cout << this->path << std::endl; - nlohmann::json data = nlohmann::json::parse(f); - std::cout << "bruh4" << std::endl; + nlohmann::json data; + try { + data = nlohmann::json::parse(f); + } catch(std::exception& e) { + std::cout << e.what() << std::endl; + } + std::cout << "bruh4" << std::endl; name = data["name"].get(); this->path.remove_filename();