Skip to content

Commit 9394619

Browse files
committed
explain error message
1 parent 5c93926 commit 9394619

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/robot/src/robotcode/robot/diagnostics/imports_manager.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,9 @@ def _get_library_libdoc(
12691269
).result(LOAD_LIBRARY_TIMEOUT)
12701270

12711271
except TimeoutError as e:
1272-
raise RuntimeError(f"Timeout loading library {name}({args!r})") from e
1272+
raise RuntimeError(
1273+
f"Exceeded timeout of {LOAD_LIBRARY_TIMEOUT} seconds loading library {name}({args!r}). Check implementation of the library, why instantiation would take so long. If you think, you require more time to load a library, set environment variable ROBOTCODE_LOAD_LIBRARY_TIMEOUT to amount of seconds."
1274+
) from e
12731275

12741276
except (SystemExit, KeyboardInterrupt):
12751277
raise
@@ -1441,7 +1443,9 @@ def _get_variables_libdoc(
14411443
).result(LOAD_LIBRARY_TIMEOUT)
14421444

14431445
except TimeoutError as e:
1444-
raise RuntimeError(f"Timeout loading library {name}({args!r})") from e
1446+
raise RuntimeError(
1447+
f"Exceeded timeout of {LOAD_LIBRARY_TIMEOUT} seconds loading library {name}({args!r}). Check implementation of the library, why instantiation would take so long. If you think, you require more time to load a library, set environment variable ROBOTCODE_LOAD_LIBRARY_TIMEOUT to amount of seconds."
1448+
) from e
14451449

14461450
except (SystemExit, KeyboardInterrupt):
14471451
raise

0 commit comments

Comments
 (0)