diff --git a/easypy/sync.py b/easypy/sync.py index eb6622e..b8fa802 100644 --- a/easypy/sync.py +++ b/easypy/sync.py @@ -911,8 +911,8 @@ def timeout_for_condition(): # NOTE: without a timeout we will never get here if pred(): # Try one last time, to make sure the last check was not (possibly too long) before the timeout return - raise TimeoutException('{condition} timed out after {duration} waiting for {msg}', - condition=self, msg=msg % args, duration=timer.elapsed) + raise TimeoutException('{condition} timed out after {duration}(out of {timeout}) waiting for {msg}', + condition=self, msg=msg % args, duration=timer.elapsed, timeout=timeout) _logger.debug('%s - waiting for ' + msg, self, *args) yield