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

View File

@@ -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 \

View File

@@ -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;
}