Skip to content

Commit

Permalink
Show more details in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Jul 20, 2022
1 parent 80ccff0 commit f329c8c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/openPMD/IO/AbstractIOHandlerImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,17 @@ class AbstractIOHandlerImpl
break;
}
}
catch (std::exception const &e)
{
std::cerr << "[AbstractIOHandlerImpl] IO Task "
<< internal::operationAsString(i.operation)
<< " failed with exception. Removing task"
<< " from IO queue and passing on the exception. "
<< "Original exception was: \n"
<< e.what() << std::endl;
(*m_handler).m_work.pop();
throw;
}
catch (...)
{
std::cerr << "[AbstractIOHandlerImpl] IO Task "
Expand Down

0 comments on commit f329c8c

Please sign in to comment.