From 980f81518023e42ff8ff65297cc1d093a007e053 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Thu, 26 Jun 2025 02:08:38 +0900 Subject: [PATCH] Better error message on screen timeouts (#2793) Co-authored-by: Suchintan --- skyvern/webeye/utils/page.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyvern/webeye/utils/page.py b/skyvern/webeye/utils/page.py index 084f1c31..ab67f08b 100644 --- a/skyvern/webeye/utils/page.py +++ b/skyvern/webeye/utils/page.py @@ -196,8 +196,8 @@ class SkyvernFrame: async with asyncio.timeout(timeout_ms / 1000): return await frame.evaluate(expression=expression, arg=arg) except asyncio.TimeoutError: - LOG.exception("Timeout to evaluate expression", expression=expression) - raise TimeoutError("timeout to evaluate expression") + LOG.exception("Skyvern timed out trying to analyze the page", expression=expression) + raise TimeoutError("Skyvern timed out trying to analyze the page") @staticmethod async def get_url(frame: Page | Frame) -> str: