aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorAkio Nakamura <[email protected]>2019-02-04 12:53:19 +0900
committerAkio Nakamura <[email protected]>2019-02-19 10:49:19 +0900
commit1a7ba84e1194aeeb3c2fc9d79337a84586b834fd (patch)
tree806c355c4d3c01bfa2d6192007f221f206d3082a /src/init.cpp
parentMerge #15433: Use a single wallet batch for UpgradeKeyMetadata (diff)
downloaddiscoin-1a7ba84e1194aeeb3c2fc9d79337a84586b834fd.tar.xz
discoin-1a7ba84e1194aeeb3c2fc9d79337a84586b834fd.zip
Fix lack of warning of unrecognized section names
1. Fix lack of warning by collecting all section names by moving m_config_sections.clear() to ArgsManager::ReadConfigFiles(). 2. Add info(file name, line number) to warning message. 3. Add a test code to confirm this situation. 3. Do clear() in ReadConfigString().
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 0013319ad..f85a0da37 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -815,7 +815,7 @@ void InitParameterInteraction()
// Warn if unrecognized section name are present in the config file.
for (const auto& section : gArgs.GetUnrecognizedSections()) {
- InitWarning(strprintf(_("Section [%s] is not recognized."), section));
+ InitWarning(strprintf("%s:%i " + _("Section [%s] is not recognized."), section.m_file, section.m_line, section.m_name));
}
}