aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/_emerge/AbstractEbuildProcess.py2
-rw-r--r--lib/_emerge/AsynchronousTask.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/_emerge/AbstractEbuildProcess.py b/lib/_emerge/AbstractEbuildProcess.py
index 45545ae15..cc1ea0f1a 100644
--- a/lib/_emerge/AbstractEbuildProcess.py
+++ b/lib/_emerge/AbstractEbuildProcess.py
@@ -388,7 +388,7 @@ class AbstractEbuildProcess(SpawnProcess):
SpawnProcess._async_wait(self)
elif self._build_dir_unlock is None:
if self.returncode is None:
- raise asyncio.InvalidStateError('Result is not ready.')
+ raise asyncio.InvalidStateError('Result is not ready for %s' % (self,))
self._async_unlock_builddir(returncode=self.returncode)
def _async_unlock_builddir(self, returncode=None):
diff --git a/lib/_emerge/AsynchronousTask.py b/lib/_emerge/AsynchronousTask.py
index ec5497b69..aaab7433a 100644
--- a/lib/_emerge/AsynchronousTask.py
+++ b/lib/_emerge/AsynchronousTask.py
@@ -102,7 +102,7 @@ class AsynchronousTask(SlotObject):
"""
if self.returncode is None:
if self.scheduler.is_running():
- raise asyncio.InvalidStateError('Result is not ready.')
+ raise asyncio.InvalidStateError('Result is not ready for %s' % (self,))
self.scheduler.run_until_complete(self.async_wait())
self._wait_hook()
return self.returncode