Skip to content

Commit

Permalink
clearer excp chain
Browse files Browse the repository at this point in the history
  • Loading branch information
tphung3 committed Oct 25, 2023
1 parent 7cac6c4 commit 45c434a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parsl/executors/workqueue/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,9 @@ def _collect_work_queue_results(self):
future.set_exception(WorkQueueTaskFailure('Cannot load result from result file', None))
else:
if isinstance(result, Exception):
future.set_exception(result)
ex = WorkQueueTaskFailure(f'Task execution raises an exception', result)
ex.__cause__ = result
future.set_exception(ex)
else:
future.set_result(result)
else:
Expand Down

0 comments on commit 45c434a

Please sign in to comment.