diff options
Diffstat (limited to 'base/inifile.cc')
-rw-r--r-- | base/inifile.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/inifile.cc b/base/inifile.cc index 7fd2f5568..6baf22850 100644 --- a/base/inifile.cc +++ b/base/inifile.cc @@ -217,8 +217,11 @@ bool IniFile::Section::add(const std::string &assignment) { string::size_type offset = assignment.find('='); - if (offset == string::npos) // no '=' found + if (offset == string::npos) { + // no '=' found + cerr << "Can't parse .ini line " << assignment << endl; return false; + } // if "+=" rather than just "=" then append value bool append = (assignment[offset-1] == '+'); |