[prev in list] [next in list] [prev in thread] [next in thread]
List: flightgear-cvs
Subject: [Flightgear-cvslogs] CVS: FlightGear/src/Main fg_init.cxx, 1.175,
From: Melchior Franz <mfranz () flightgear ! org>
Date: 2007-03-29 21:26:36
Message-ID: E1HX28i-0006mu-00 () baron ! me ! umn ! edu
[Download RAW message or body]
Update of /var/cvs/FlightGear-0.9/FlightGear/src/Main
In directory baron:/tmp/cvs-serv25954/Main
Modified Files:
fg_init.cxx
Log Message:
fix spectacularly useless error messages
Index: fg_init.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Main/fg_init.cxx,v
retrieving revision 1.175
retrieving revision 1.176
diff -C 2 -r1.175 -r1.176
*** fg_init.cxx 15 Jan 2007 20:58:20 -0000 1.175
--- fg_init.cxx 29 Mar 2007 21:26:33 -0000 1.176
***************
*** 405,415 ****
const char *d_path_str = d_node->getStringValue("strings");
if (!d_path_str) {
! SG_LOG(SG_GENERAL, SG_ALERT, "Incorrect path in configuration file.");
return NULL;
}
d_path.append(d_path_str);
! SG_LOG(SG_GENERAL, SG_INFO, "Reading localized strings from "
! << d_path.str());
SGPropertyNode *strings = c_node->getNode("strings");
--- 405,414 ----
const char *d_path_str = d_node->getStringValue("strings");
if (!d_path_str) {
! SG_LOG(SG_GENERAL, SG_ALERT, "No path in " << d_node->getPath() << "/strings.");
return NULL;
}
d_path.append(d_path_str);
! SG_LOG(SG_GENERAL, SG_INFO, "Reading localized strings from " << d_path.str());
SGPropertyNode *strings = c_node->getNode("strings");
***************
*** 429,444 ****
const char *c_path_str = c_node->getStringValue("strings");
if (!c_path_str) {
! SG_LOG(SG_GENERAL, SG_ALERT, "Incorrect path in configuration file.");
return NULL;
}
c_path.append(c_path_str);
! SG_LOG(SG_GENERAL, SG_INFO, "Reading localized strings from "
! << c_path.str());
try {
readProperties(c_path.str(), strings);
} catch (const sg_exception &e) {
! SG_LOG(SG_GENERAL, SG_ALERT, "Unable to read the localized strings");
return NULL;
}
--- 428,443 ----
const char *c_path_str = c_node->getStringValue("strings");
if (!c_path_str) {
! SG_LOG(SG_GENERAL, SG_ALERT, "No path in " << c_node->getPath() << "/strings");
return NULL;
}
c_path.append(c_path_str);
! SG_LOG(SG_GENERAL, SG_INFO, "Reading localized strings from " << c_path.str());
try {
readProperties(c_path.str(), strings);
} catch (const sg_exception &e) {
! SG_LOG(SG_GENERAL, SG_ALERT,
! "Unable to read the localized strings from " << c_path.str());
return NULL;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-cvslogs mailing list
Flightgear-cvslogs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-cvslogs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic