Changeset 1031
- Timestamp:
- Apr 12, 2008, 3:56:36 PM (17 years ago)
- Location:
- code/branches/core2/src/orxonox/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/ConfigValueContainer.cc
r1030 r1031 153 153 { 154 154 if (!success) 155 { 155 156 COUT(1) << "Error: Config-value '" << this->varname_ << "' in " << this->sectionname_ << " is a vector." << std::endl; 157 } 156 158 else 159 { 157 160 COUT(1) << "Error: Invalid vector-index." << std::endl; 161 } 158 162 return false; 159 163 } … … 275 279 276 280 if (!success || index < 0 || index > MAX_VECTOR_INDEX) 281 { 282 if (!success) 283 { 284 COUT(1) << "Error: Config-value '" << this->varname_ << "' in " << this->sectionname_ << " is a vector." << std::endl; 285 } 286 else 287 { 288 COUT(1) << "Error: Invalid vector-index." << std::endl; 289 } 277 290 return false; 291 } 278 292 279 293 if (token.size() >= 2) -
code/branches/core2/src/orxonox/core/ConfigValueIncludes.h
r1030 r1031 82 82 } \ 83 83 else \ 84 COUT(2) << "Warning: Couldn't reset variable " << #varname << ", corresponding container doesn't exist." << std::endl 84 { \ 85 COUT(2) << "Warning: Couldn't reset variable " << #varname << ", corresponding container doesn't exist." << std::endl; \ 86 } 85 87 86 88 /** -
code/branches/core2/src/orxonox/core/Language.cc
r1030 r1031 253 253 this->createEntry(lineString.substr(0, pos), lineString.substr(pos + 1)); 254 254 else 255 { 255 256 COUT(2) << "Warning: Invalid language entry \"" << lineString << "\" in " << getFileName(this->defaultLanguage_) << std::endl; 257 } 256 258 } 257 259 } … … 305 307 } 306 308 else 309 { 307 310 COUT(2) << "Warning: Invalid language entry \"" << lineString << "\" in " << getFileName(this->language_) << std::endl; 311 } 308 312 } 309 313 }
Note: See TracChangeset
for help on using the changeset viewer.