Skip to content

Commit 549a4a2

Browse files
committed
feat: add error code to invalid node error
1 parent bb11bd9 commit 549a4a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/shared/lsp/utils/platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function validateNodeExe(nodePath: string[], lsp: string, args: str
4040
if (!ok) {
4141
const msg = `failed to run basic "node -e" test (exitcode=${r.exitCode}): ${proc.toString(false, true)}`
4242
logger.error(msg)
43-
throw new ToolkitError(`amazonqLsp: ${msg}`)
43+
throw new ToolkitError(`amazonqLsp: ${msg}`, { code: 'InvalidNode' })
4444
}
4545

4646
// Check that we can start `node …/lsp.js --stdio …`.

0 commit comments

Comments
 (0)