[Scummvm-cvs-logs] SF.net SVN: scummvm: [22093] scummvm/trunk/common/config-file.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sun Apr 23 04:16:01 CEST 2006
Revision: 22093
Author: fingolfin
Date: 2006-04-23 04:15:43 -0700 (Sun, 23 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22093&view=rev
Log Message:
-----------
Modified some error calls to explicitly name the function they occured in (this helps debugging)
Modified Paths:
--------------
scummvm/trunk/common/config-file.cpp
Modified: scummvm/trunk/common/config-file.cpp
===================================================================
--- scummvm/trunk/common/config-file.cpp 2006-04-23 08:34:19 UTC (rev 22092)
+++ scummvm/trunk/common/config-file.cpp 2006-04-23 11:15:43 UTC (rev 22093)
@@ -115,9 +115,9 @@
p++;
if (*p == '\0')
- error("Config file buggy: missing ] in line %d", lineno);
+ error("ConfigFile::loadFromStream: missing ] in line %d", lineno);
else if (*p != ']')
- error("Config file buggy: Invalid character '%c' occured in section name in line %d", *p, lineno);
+ error("ConfigFile::loadFromStream: Invalid character '%c' occured in section name in line %d", *p, lineno);
*p = 0;
@@ -141,13 +141,13 @@
// If no section has been set, this config file is invalid!
if (section.name.empty()) {
- error("Config file buggy: Key/value pair found outside a section in line %d", lineno);
+ error("ConfigFile::loadFromStream: Key/value pair found outside a section in line %d", lineno);
}
// Split string at '=' into 'key' and 'value'.
char *p = strchr(t, '=');
if (!p)
- error("Config file buggy: Junk found in line line %d: '%s'", lineno, t);
+ error("ConfigFile::loadFromStream: Junk found in line line %d: '%s'", lineno, t);
*p = 0;
kv.key = rtrim(t);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list