Skip to content

Commit

Permalink
extension/src/goEnvironmentStatus: fix error string
Browse files Browse the repository at this point in the history
Should've used `` to enable variable substitution

For #3386

Change-Id: I94bc823b0c959637f6d8b5a22fa90a2a76ba84d8
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/586255
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
kokoro-CI: kokoro <noreply+kokoro@google.com>
  • Loading branch information
hyangah committed May 20, 2024
1 parent 5d8af43 commit 65d72fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/src/goEnvironmentStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ async function downloadGo(goOption: GoEnvironmentOption): Promise<GoEnvironmentO
});
if (result) {
outputChannel.error(`Error installing ${goOption.binpath}: ${result}`);
throw new Error('Could not install ${goOption.binpath}');
throw new Error(`Could not install ${goOption.binpath} - check logs in the "Go" output channel`);
}
// run `goX.X download`
const goXExecutable = getBinPath(newExecutableName);
Expand Down

0 comments on commit 65d72fd

Please sign in to comment.