Added exceptions.[ch]xx
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user