Skip to content

Commit 5b613f9

Browse files
committed
Emit error cause when fetching fails to download API types
1 parent e119049 commit 5b613f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1010

1111
- The language server now supports cancellation notifications from the client. This should help in cases where the
1212
server is stuck waiting for typechecking to complete.
13+
- Emit error cause when fetching fails to download API types
1314

1415
### Changed
1516

editors/code/src/roblox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const downloadApiDefinitions = async (context: vscode.ExtensionContext) => {
9393
),
9494
]).catch((err) =>
9595
vscode.window.showErrorMessage(
96-
"Failed to retrieve API information: " + err,
96+
`Failed to retrieve API information: ${err}, cause: ${err.cause}`,
9797
),
9898
);
9999
},

0 commit comments

Comments
 (0)