From 66d694d2da88da79d8a2e384a3f64ab8563dc934 Mon Sep 17 00:00:00 2001 From: Aviv Shahar Date: Sun, 27 Dec 2020 11:30:47 +0200 Subject: [PATCH] TimeoutException - add original timeout value to exception msg --- easypy/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easypy/sync.py b/easypy/sync.py index eb6622ef..b8fa802c 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