diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/JSONManifestBuilder.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/JSONManifestBuilder.cc b/src/lib/JSONManifestBuilder.cc index 5983b3c..01b7de2 100644 --- a/src/lib/JSONManifestBuilder.cc +++ b/src/lib/JSONManifestBuilder.cc @@ -44,12 +44,16 @@ bool JSONManifestBuilder::BuildTarget(BuildConfig& config) { nlohmann::json json_obj = nlohmann::json::parse(json); - nlohmann::json description = json_obj["description"]; + try { + nlohmann::json description = json_obj["description"]; - NeBuild::Logger::info() << "nebuild: installing: " << path << std::endl; + NeBuild::Logger::info() << "nebuild: installing: " << path << std::endl; - if (auto res = description.get<std::string>(); !res.empty()) - NeBuild::Logger::info() << "nebuild: description: " << res << std::endl; + if (auto res = description.get<std::string>(); !res.empty()) + NeBuild::Logger::info() << "nebuild: description: " << res << std::endl; + } catch (...) { + + } std::string compiler = json_obj["compiler_path"].get<std::string>(); |
