@@ -1270,10 +1270,11 @@ def _get_library_libdoc(
1270
1270
1271
1271
except TimeoutError as e :
1272
1272
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."
1277
1278
) from e
1278
1279
1279
1280
except (SystemExit , KeyboardInterrupt ):
@@ -1447,10 +1448,12 @@ def _get_variables_libdoc(
1447
1448
1448
1449
except TimeoutError as e :
1449
1450
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."
1454
1457
) from e
1455
1458
1456
1459
except (SystemExit , KeyboardInterrupt ):
0 commit comments