diff options
Diffstat (limited to 'src/filesystem')
-rw-r--r-- | src/filesystem/inifile.cc | 5 | ||||
-rw-r--r-- | src/filesystem/inifile.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/filesystem/inifile.cc b/src/filesystem/inifile.cc index 90efa15..ddb1c63 100644 --- a/src/filesystem/inifile.cc +++ b/src/filesystem/inifile.cc @@ -237,6 +237,11 @@ bool IniFile::got_key_bool(const char * keylabel, bool & b) return false; } +void IniFile::unknown_value() const +{ + con_warn << name() << " unknown value '" << value() << "' for key '" << key() << "' at line " << line() << std::endl; +} + void IniFile::unkown_key() const { con_warn << name() << " unknown key '" << key() << "' at line " << line() << std::endl; diff --git a/src/filesystem/inifile.h b/src/filesystem/inifile.h index 765f1af..f118f7b 100644 --- a/src/filesystem/inifile.h +++ b/src/filesystem/inifile.h @@ -81,6 +81,9 @@ public: return line_number; } + /// print a default unkown value error + void unknown_value() const; + /// print a default unkown key error void unkown_key() const; |