When a task raises an exception, we used to catch that exception, then evaluate if we should continue on error, and if we didn't, we will raise the same exception again. Unfortunately, this clears the original call stack, which doesn't help when debugging.
This is an initial fix to insure that if we are not continuing on error, that we don't even catch the exception. I also changed the logging to use the exception method.
Description
When a task raises an exception, we used to catch that exception, then evaluate if we should continue on error, and if we didn't, we will raise the same exception again. Unfortunately, this clears the original call stack, which doesn't help when debugging.
This is an initial fix to insure that if we are not continuing on error, that we don't even catch the exception. I also changed the logging to use the exception method.