Skip to content

Commit ba749cb

Browse files
Merge pull request #75 from engines-dev/not-found-error
Add messages to assertion failures in `request_references` and `request_document_symbols`
2 parents 627841c + ee104b0 commit ba749cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/multilspy/language_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ async def request_references(
467467
)
468468

469469
ret: List[multilspy_types.Location] = []
470-
assert isinstance(response, list)
470+
assert isinstance(response, list), f"Unexpected response from Language Server: {response}"
471471
for item in response:
472472
assert isinstance(item, dict)
473473
assert LSPConstants.URI in item
@@ -597,7 +597,7 @@ async def request_document_symbols(self, relative_file_path: str) -> Tuple[List[
597597

598598
ret: List[multilspy_types.UnifiedSymbolInformation] = []
599599
l_tree = None
600-
assert isinstance(response, list)
600+
assert isinstance(response, list), f"Unexpected response from Language Server: {response}"
601601
for item in response:
602602
assert isinstance(item, dict)
603603
assert LSPConstants.NAME in item

0 commit comments

Comments
 (0)