Skip to content

Commit e5f1861

Browse files
committed
Ensuring the error message is correct when path is undefined
1 parent e95459a commit e5f1861

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/tools/lldb-dap/src-ts/debug-adapter-factory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ export class LLDBDapDescriptorFactory
183183
static async showLLDBDapNotFoundMessage(path?: string) {
184184
const openSettingsAction = "Open Settings";
185185
const callbackValue = await vscode.window.showErrorMessage(
186-
`Debug adapter path: ${path} is not a valid file`,
186+
path ? `Debug adapter path: ${path} is not a valid file` :
187+
`Debug adapter executable not found`,
187188
openSettingsAction,
188189
);
189190

0 commit comments

Comments
 (0)