From 2f97dcb5107c0c36d57711a26d0469855ea138c5 Mon Sep 17 00:00:00 2001 From: Alvaro Laserna Date: Thu, 27 Jul 2023 11:25:17 +0200 Subject: [PATCH] fix full exception printing --- testui/elements/testui_element.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testui/elements/testui_element.py b/testui/elements/testui_element.py index db2064b..b7772ed 100644 --- a/testui/elements/testui_element.py +++ b/testui/elements/testui_element.py @@ -17,6 +17,7 @@ def testui_error(driver, exception: str) -> None: config = driver.configuration + exception += "\n" if config.save_screenshot_on_fail: try: @@ -38,7 +39,7 @@ def testui_error(driver, exception: str) -> None: logger.log_error(full_exception) driver.set_error(full_exception) raise ElementException( - "There were errors during the UI testing, check the logs" + f'There were errors during the UI testing, check the logs:\n{full_exception}' )