Skip to content

Commit d22e16e

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easypy/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ 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}',
914+
raise TimeoutException('{condition} timed out after {duration}(out of {timeout}) waiting for {msg}',
915915
condition=self, msg=msg % args, duration=timer.elapsed)
916916
_logger.debug('%s - waiting for ' + msg, self, *args)
917917
yield

0 commit comments

Comments
 (0)