Skip to content
Snippets Groups Projects
Commit bf7a8f8f authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Improve output management on failure in parallel

parent 8464b196
No related branches found
No related tags found
1 merge request!176Add HDF5 support
......@@ -54,6 +54,8 @@ SignalManager::pauseForDebug(int signal)
{
if (std::string(PUGS_BUILD_TYPE) != "Release") {
if (s_pause_on_error) {
// Each failing process must write
std::cerr.clear();
std::cerr << "\n======================================\n"
<< rang::style::reset << rang::fg::reset << rang::style::bold << "to attach gdb to this process run\n"
<< "\tgdb -pid " << rang::fg::red << getpid() << rang::fg::reset << '\n'
......@@ -77,7 +79,7 @@ SignalManager::handler(int signal)
std::signal(SIGABRT, SIG_DFL);
// Each failing process must write
std::cerr.setstate(std::ios::goodbit);
std::cerr.clear();
std::cerr << BacktraceManager{} << '\n';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment