Skip to content

Commit 0d58446

Browse files
committed
Add error message for when there are no pre-built binaries
for a specific ghc version
1 parent ff71436 commit 0d58446

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hlsBinaries.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ export async function downloadServer(
129129

130130
const assetName = `haskell-language-server-${githubOS}-${ghcVersion}.gz`;
131131
const asset = release?.assets.find((x) => x.name === assetName);
132-
if (!release || !asset) {
132+
if (!asset) {
133+
window.showErrorMessage(
134+
`Couldn't find any pre-built haskell-language-server binaries for ${githubOS} and ${ghcVersion}`
135+
);
133136
return null;
134137
}
135138
const binaryURL = url.parse(asset.browser_download_url);

0 commit comments

Comments
 (0)