Skip to content

Commit 6b760ac

Browse files
leigaolhayemaxi
andauthored
Update packages/core/src/amazonq/lsp/lspController.ts
Co-authored-by: Maxim Hayes <[email protected]>
1 parent 747d5ca commit 6b760ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/amazonq/lsp/lspController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ export class LspController {
372372
result: 'Failed',
373373
amazonqIndexFileCount: 0,
374374
amazonqIndexFileSizeInMB: 0,
375-
reason: `Error when building index. ${error instanceof Error ? error.message : error}`,
375+
reason: error.code ? error.code : error.name ? error.name : 'Unknown',
376+
reasonDesc: `Error when building index. ${error instanceof Error ? error.message : error}`,
376377
})
377378
} finally {
378379
this._isIndexingInProgress = false

0 commit comments

Comments
 (0)