Added exceptions.[ch]xx

This commit is contained in:
curt
2001-07-19 02:34:43 +00:00
parent 1976481ba2
commit 55845bbbb9
2 changed files with 4 additions and 4 deletions
+2
View File
@@ -10,6 +10,7 @@ lib_LIBRARIES = libsgmisc.a
include_HEADERS = \ include_HEADERS = \
commands.hxx \ commands.hxx \
exception.hxx
props.hxx \ props.hxx \
sg_path.hxx \ sg_path.hxx \
sgstream.hxx \ sgstream.hxx \
@@ -20,6 +21,7 @@ include_HEADERS = \
libsgmisc_a_SOURCES = \ libsgmisc_a_SOURCES = \
commands.cxx \ commands.cxx \
exception.cxx \
props.cxx \ props.cxx \
props_io.cxx \ props_io.cxx \
sg_path.cxx \ sg_path.cxx \
+2 -4
View File
@@ -334,10 +334,8 @@ int main (int ac, char ** av)
for (int i = 1; i < ac; i++) { for (int i = 1; i < ac; i++) {
cout << "Reading " << av[i] << endl; cout << "Reading " << av[i] << endl;
SGPropertyNode root; SGPropertyNode root;
if (!readProperties(av[i], &root)) readProperties(av[i], &root);
cerr << "Failed to read properties from " << av[i] << endl; writeProperties(cout, &root);
else
writeProperties(cout, &root);
cout << endl; cout << endl;
} }