diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 2e76cea489..21f47d0a71 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -28,6 +28,7 @@ add_executable( property_tree EXCLUDE_FROM_ALL property_tree.cpp ../common/richio.cpp + ../common/exceptions.cpp ../common/dsnlexer.cpp ../common/ptree.cpp ) diff --git a/tools/property_tree.cpp b/tools/property_tree.cpp index 0386d2120e..7c19b31366 100644 --- a/tools/property_tree.cpp +++ b/tools/property_tree.cpp @@ -85,7 +85,7 @@ int main( int argc, char** argv ) } catch( const IO_ERROR& ioe ) { - fprintf( stderr, "%s\n", TO_UTF8( ioe.errorText ) ); + fprintf( stderr, "%s\n", TO_UTF8( ioe.What() ) ); } }