From 21c7ee1e3ef10cc1ace8d6f29f41c18358b8c0f4 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Thu, 23 Oct 2003 18:51:12 -0700 Subject: [PATCH] Print error message when we can't parse a .ini assignment line. --HG-- extra : convert_revision : b7e19ff42ddd9a21571e086c11e143d9290e0e38 --- base/inifile.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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] == '+'); -- 2.30.2