@@ -1270,10 +1270,11 @@ def _get_library_libdoc(
12701270
12711271 except TimeoutError as e :
12721272 raise RuntimeError (
1273- f"""Exceeded timeout of { LOAD_LIBRARY_TIMEOUT } seconds loading library { name } ({ args !r} ).
1274- Check implementation of the library, why instantiation would take so long. If you think,
1275- you require more time to load a library, set environment variable
1276- ROBOTCODE_LOAD_LIBRARY_TIMEOUT to amount of seconds."""
1273+ f"Loading library { name !r} with args { args !r} (working_dir={ working_dir !r} , base_dir={ base_dir !r} ) "
1274+ f"timed out after { LOAD_LIBRARY_TIMEOUT } seconds. "
1275+ "The library may be slow or blocked during import. "
1276+ "If required, increase the timeout by setting the ROBOTCODE_LOAD_LIBRARY_TIMEOUT "
1277+ "environment variable."
12771278 ) from e
12781279
12791280 except (SystemExit , KeyboardInterrupt ):
@@ -1447,10 +1448,12 @@ def _get_variables_libdoc(
14471448
14481449 except TimeoutError as e :
14491450 raise RuntimeError (
1450- f"""Exceeded timeout of { LOAD_LIBRARY_TIMEOUT } seconds loading library { name } ({ args !r} ).
1451- Check implementation of the library, why instantiation would take so long. If you think,
1452- you require more time to load a library, set environment variable
1453- ROBOTCODE_LOAD_LIBRARY_TIMEOUT to amount of seconds."""
1451+ f"Loading variables { name !r} with args { args !r} (working_dir={ working_dir !r} , "
1452+ f"base_dir={ base_dir !r} ) "
1453+ f"timed out after { LOAD_LIBRARY_TIMEOUT } seconds. "
1454+ "The variables may be slow or blocked during import. "
1455+ "If required, increase the timeout by setting the ROBOTCODE_LOAD_LIBRARY_TIMEOUT "
1456+ "environment variable."
14541457 ) from e
14551458
14561459 except (SystemExit , KeyboardInterrupt ):
0 commit comments