Skip to content

Commit 21f3096

Browse files
committed
isoltest: Print exceptions caught during testing to stderr
1 parent d8cd028 commit 21f3096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tools/isoltest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ TestTool::Result TestTool::process()
198198
}
199199
catch (SoltestError const& exception)
200200
{
201-
AnsiColorized(std::cout, formatted, {BOLD, RED}) << exception.what() << std::endl;
201+
AnsiColorized(std::cerr, formatted, {BOLD, RED}) << exception.what() << std::endl;
202202
return Result::Exception;
203203
}
204204
catch (...)
205205
{
206-
AnsiColorized(std::cout, formatted, {BOLD, RED}) <<
206+
AnsiColorized(std::cerr, formatted, {BOLD, RED}) <<
207207
"Unhandled exception during test: " << boost::current_exception_diagnostic_information() << std::endl;
208208
return Result::Exception;
209209
}

0 commit comments

Comments
 (0)