diff options
Diffstat (limited to 'src/other_tools/utils')
-rw-r--r-- | src/other_tools/utils/parse_precomputed_root.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/other_tools/utils/parse_precomputed_root.cpp b/src/other_tools/utils/parse_precomputed_root.cpp index c5eebf90..df520158 100644 --- a/src/other_tools/utils/parse_precomputed_root.cpp +++ b/src/other_tools/utils/parse_precomputed_root.cpp @@ -81,12 +81,18 @@ namespace { return unexpected{fmt::format( "Unsupported value for key \"config\":\n{}", config->ToString())}; } + + auto absent = ParseAbsent(repository); + if (not absent.has_value()) { + return unexpected{std::move(absent).error()}; + } + return ComputedRoot{.repository = repo->String(), .target_module = target_module->String(), .target_name = target_module->String(), .config = config.IsNotNull() ? config->ToJson() : nlohmann::json::object(), - .absent = false}; + .absent = *absent}; } [[nodiscard]] auto ParseTreeStructureRoot(ExpressionPtr const& repository) |