diff options
Diffstat (limited to 'tests/textwolf/test2.cpp')
-rw-r--r-- | tests/textwolf/test2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/textwolf/test2.cpp b/tests/textwolf/test2.cpp index 79d1a6d..f121995 100644 --- a/tests/textwolf/test2.cpp +++ b/tests/textwolf/test2.cpp @@ -39,6 +39,10 @@ int main( int argc, char *argv[] ) Scanner::iterator ci, ce; for( ci = xsc.begin( ), ce = xsc.end( ); ci != ce; ci++ ) { + if( ci->type( ) == Scanner::ErrorOccurred ) { + throw std::runtime_error( ci->content( ) ); + } + PathSelect::iterator itr = xsel.push( ci->type( ), ci->content( ), ci->size( ) ); PathSelect::iterator end = xsel.end( ); for( ; itr != end; itr++ ) { |