From b5cf46ddd08a28fb29c225193b7d08ef3ef6ce22 Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com.> Date: Fri, 21 Jun 2024 22:50:29 +0200 Subject: [PATCH] chore: Improve error output in recruitment ResourceUpdater --- tools/ResourceUpdater/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/ResourceUpdater/main.cpp b/tools/ResourceUpdater/main.cpp index 940db7009f..f0e0760e63 100644 --- a/tools/ResourceUpdater/main.cpp +++ b/tools/ResourceUpdater/main.cpp @@ -1101,14 +1101,17 @@ bool update_recruitment_data( for (const std::string& name : chars_list) { auto id_iter = chars_id_list.find(name); if (id_iter == chars_id_list.cend()) { - std::cerr << "Failed to find char: " << name << std::endl; + std::cerr << "Failed to find char: " << std::endl; + std::cerr << "char: " << name << std::endl; return false; } const std::string& id = id_iter->second; auto info_iter = base_chars_info.find(id); if (info_iter == base_chars_info.cend()) { - std::cerr << "Failed to find char's info: " << id << name << std::endl; + std::cerr << "Failed to find char's info:" << std::endl; + std::cerr << "id: " << id << std::endl; + std::cerr << "char: " << name << std::endl; return false; }