Skip to content

Commit 66d694d

Browse files
committed
TimeoutException - add original timeout value to exception msg
1 parent 3a6e55f commit 66d694d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easypy/sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,8 +911,8 @@ def timeout_for_condition():
911911
# NOTE: without a timeout we will never get here
912912
if pred(): # Try one last time, to make sure the last check was not (possibly too long) before the timeout
913913
return
914-
raise TimeoutException('{condition} timed out after {duration} waiting for {msg}',
915-
condition=self, msg=msg % args, duration=timer.elapsed)
914+
raise TimeoutException('{condition} timed out after {duration}(out of {timeout}) waiting for {msg}',
915+
condition=self, msg=msg % args, duration=timer.elapsed, timeout=timeout)
916916
_logger.debug('%s - waiting for ' + msg, self, *args)
917917
yield
918918

0 commit comments

Comments
 (0)