diff --git a/jug/task.py b/jug/task.py index 693b861..a9dd5a6 100644 --- a/jug/task.py +++ b/jug/task.py @@ -172,7 +172,14 @@ def load(self): Nothing ''' assert self.can_load() - self._result = self.store.load(self.hash()) + try: + self._result = self.store.load(self.hash()) + except Exception as e: + h = self.hash().decode() + raise RuntimeError( + "Failed to load result for task '{}' (hash: {}, at '{}/{}'): {}".format( + self.name, h, h[:2], h[2:], e) + ) from e def invalidate(self): '''