From a5fb72def20a6bf38a5cb60fa60b24619166cd2d Mon Sep 17 00:00:00 2001 From: huangjiyi <43315610+huangjiyi@users.noreply.github.com> Date: Fri, 8 Sep 2023 17:04:28 +0800 Subject: [PATCH] update (#57088) --- paddle/utils/flags_native.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/utils/flags_native.cc b/paddle/utils/flags_native.cc index ea7445f7144..c0351a4f3b2 100644 --- a/paddle/utils/flags_native.cc +++ b/paddle/utils/flags_native.cc @@ -297,8 +297,9 @@ void Flag::SetValueFromString(const std::string& value) { void FlagRegistry::RegisterFlag(Flag* flag) { auto iter = flags_.find(flag->name_); if (iter != flags_.end()) { - LOG_FLAG_FATAL_ERROR("illegal RegisterFlag, flag \"" + flag->name_ + - "\" has been defined in " + iter->second->file_); + LOG_FLAG_FATAL_ERROR("flag multiple definition, flag \"" + flag->name_ + + "\" was defined both in " + iter->second->file_ + + " and " + flag->file_); } else { std::lock_guard lock(mutex_); flags_[flag->name_] = flag; -- GitLab