diff options
author | Max Horn | 2006-04-23 11:15:43 +0000 |
---|---|---|
committer | Max Horn | 2006-04-23 11:15:43 +0000 |
commit | f26b55c7a3cea614db32172d5c1167748d87d84f (patch) | |
tree | 530ebded77e61aaa886ea4ae70d14f0be656fbfb | |
parent | b9fbf9091d46d1ecd6927c11f8cd3a4ccfe49abf (diff) | |
download | scummvm-rg350-f26b55c7a3cea614db32172d5c1167748d87d84f.tar.gz scummvm-rg350-f26b55c7a3cea614db32172d5c1167748d87d84f.tar.bz2 scummvm-rg350-f26b55c7a3cea614db32172d5c1167748d87d84f.zip |
Modified some error calls to explicitly name the function they occured in (this helps debugging)
svn-id: r22093
-rw-r--r-- | common/config-file.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/config-file.cpp b/common/config-file.cpp index 4baeb0e816..5d01e4402d 100644 --- a/common/config-file.cpp +++ b/common/config-file.cpp @@ -115,9 +115,9 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) { 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 @@ bool ConfigFile::loadFromStream(SeekableReadStream &stream) { // 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); |