Skip to content

Commit

Permalink
Add more exception debugging to task running.
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot committed Aug 31, 2023
1 parent 3cfbeba commit 9a57066
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/engine/tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ inline executor::implementation::implementation(unsigned parallelism)
}
catch (const std::system_error & e)
{
err_printf("Task execution error: %s", e.what());
err_printf("Task startup error: %s", e.what());
}
}
#endif
Expand Down Expand Up @@ -313,8 +313,10 @@ void executor::implementation::runner()
{
f();
}
catch (const std::exception &)
{}
catch (const std::exception & e)
{
err_printf("Task runner function error: %s", e.what());
}
call_done();
}
}
Expand Down

0 comments on commit 9a57066

Please sign in to comment.