From: curt Date: Thu, 19 Jul 2001 02:34:43 +0000 (+0000) Subject: Added exceptions.[ch]xx X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=55845bbbb926c48b0b95216a319bf247f81d763c;p=simgear.git Added exceptions.[ch]xx --- diff --git a/simgear/misc/Makefile.am b/simgear/misc/Makefile.am index 4cd43742..0014ec16 100644 --- a/simgear/misc/Makefile.am +++ b/simgear/misc/Makefile.am @@ -10,6 +10,7 @@ lib_LIBRARIES = libsgmisc.a include_HEADERS = \ commands.hxx \ + exception.hxx props.hxx \ sg_path.hxx \ sgstream.hxx \ @@ -20,6 +21,7 @@ include_HEADERS = \ libsgmisc_a_SOURCES = \ commands.cxx \ + exception.cxx \ props.cxx \ props_io.cxx \ sg_path.cxx \ diff --git a/simgear/misc/props_test.cxx b/simgear/misc/props_test.cxx index da88d00f..15a48abc 100644 --- a/simgear/misc/props_test.cxx +++ b/simgear/misc/props_test.cxx @@ -334,10 +334,8 @@ int main (int ac, char ** av) for (int i = 1; i < ac; i++) { cout << "Reading " << av[i] << endl; SGPropertyNode root; - if (!readProperties(av[i], &root)) - cerr << "Failed to read properties from " << av[i] << endl; - else - writeProperties(cout, &root); + readProperties(av[i], &root); + writeProperties(cout, &root); cout << endl; }