Skip to content

Commit 7bd7c12

Browse files
committed
Improve serverExecutablePath missing error message
Fixes #256
1 parent 65e0132 commit 7bd7c12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
"scope": "resource",
150150
"type": "string",
151151
"default": "",
152-
"description": "Set the path to your language server executable, if it's not already on your $PATH. Works with ~, ${HOME} and ${workspaceFolder}."
152+
"description": "Manually set a language server executable. Can be something on the $PATH or a path to an executable itself. Works with ~, ${HOME} and ${workspaceFolder}."
153153
},
154154
"haskell.enable": {
155155
"scope": "resource",

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function findManualExecutable(uri: Uri, folder?: WorkspaceFolder): string | null
8080
}
8181

8282
if (!executableExists(exePath)) {
83-
throw new Error('Manual executable missing');
83+
throw new Error(`serverExecutablePath is set to ${exePath} but it doesn't exist and is not on the PATH`);
8484
}
8585
return exePath;
8686
}

0 commit comments

Comments
 (0)