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}' )