diff --git a/implementations/main.cpp b/implementations/main.cpp index 314e14f..9d53ad5 100644 --- a/implementations/main.cpp +++ b/implementations/main.cpp @@ -69,7 +69,14 @@ int main(int argc, char* argv[]) { Project project(std::move(projectPath)); if(command == "build") { - std::tuple config = project.Build(argument); + std::tuple config; + + try { + config = project.Build(argument); + } catch(std::exception& e) { + std::cout << e.what() << std::endl; + } + if(std::get<1>(config).errors.empty()) { if(run){ std::string binDir = std::format("{}/{}", project.binDir.string(), std::get<0>(config).name);