From 5db7a74047832565e06e143b69337fd9e1dc1e88 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Sun, 1 Mar 2026 15:35:26 +0100 Subject: [PATCH] windows build fixes --- implementations/Crafter.Build-Project.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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();