diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-08-28 09:56:49 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-08-29 09:09:26 +0200 |
commit | 21b9309363ba122342f28b6de0ea78c48650bdc5 (patch) | |
tree | 0c2bf044624652d14c153c637b7bf88aec57beca /src/other_tools/repo_map | |
parent | c70ce16da685a4972145a42b3aa6d37a67dc56b1 (diff) | |
download | justbuild-21b9309363ba122342f28b6de0ea78c48650bdc5.tar.gz |
just-mr maps: Fix wrong or missing return conditions
Diffstat (limited to 'src/other_tools/repo_map')
-rw-r--r-- | src/other_tools/repo_map/repos_to_setup_map.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/other_tools/repo_map/repos_to_setup_map.cpp b/src/other_tools/repo_map/repos_to_setup_map.cpp index 853bf549..48074fd4 100644 --- a/src/other_tools/repo_map/repos_to_setup_map.cpp +++ b/src/other_tools/repo_map/repos_to_setup_map.cpp @@ -847,10 +847,10 @@ auto CreateReposToSetupMap( return; } if (not resolved_repo_desc.value()->IsMap()) { - Logger::Log( - LogLevel::Error, - "Config: Repository {} resolves to a non-map description", - nlohmann::json(key).dump()); + (*logger)(fmt::format("Config: Repository {} resolves to a " + "non-map description", + nlohmann::json(key).dump()), + /*fatal=*/true); return; } auto repo_type = (*resolved_repo_desc)->At("type"); |