raise error when retry resource fails
Merge pull request #156 from dimagi/resouce

raise error when retry resource fails