Skip to content

Commit 5f157e2

Browse files
committed
output correct command name in error
1 parent 8c51451 commit 5f157e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lsptoolshost/dotnetRuntimeExtensionResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver {
160160
const command = this.platformInfo.isWindows() ? 'where' : 'which';
161161
const whereOutput = await promisify(exec)(`${command} dotnet`);
162162
if (!whereOutput.stdout) {
163-
throw new Error(`Unable to find dotnet from where.`);
163+
throw new Error(`Unable to find dotnet from ${command}.`);
164164
}
165165

166166
const path = whereOutput.stdout.trim();

0 commit comments

Comments
 (0)