Skip to content

Commit 518d34f

Browse files
committed
Link to list of supported versions in NoBinariesError
Fixes #317
1 parent 2216645 commit 518d34f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/hlsBinaries.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,14 @@ class MissingToolError extends Error {
8181
// tslint:disable-next-line: max-classes-per-file
8282
class NoBinariesError extends Error {
8383
constructor(hlsVersion: string, ghcVersion?: string) {
84+
const supportedReleasesLink =
85+
'[See the list of supported versions here](https://github.com/haskell/vscode-haskell#supported-ghc-versions)';
8486
if (ghcVersion) {
85-
super(`haskell-language-server ${hlsVersion} for GHC ${ghcVersion} is not available on ${os.type()}`);
87+
super(`haskell-language-server ${hlsVersion} for GHC ${ghcVersion} is not available on ${os.type()}.
88+
${supportedReleasesLink}`);
8689
} else {
87-
super(`haskell-language-server ${hlsVersion} is not available on ${os.type()}`);
90+
super(`haskell-language-server ${hlsVersion} is not available on ${os.type()}.
91+
${supportedReleasesLink}`);
8892
}
8993
}
9094
}

0 commit comments

Comments
 (0)