Skip to content

Commit 4c79009

Browse files
committed
Change notification to output channel
1 parent aa3712c commit 4c79009

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/espIdf/setTarget/DevkitsCommand.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,12 @@ export class DevkitsCommand {
6767
"esp_detect_config.py"
6868
);
6969

70-
// Check if esp_detect_config.py exists
7170
if (!fs.existsSync(scriptPath)) {
72-
throw new Error(`esp_detect_config.py not found at path: ${scriptPath}`);
71+
const infoMsg = `Devkit detection script not available at: ${scriptPath}. A default list of targets will be displayed instead.`;
72+
Logger.info(infoMsg);
73+
OutputChannel.appendLine(infoMsg, "ESP Detect Config");
74+
OutputChannel.show();
75+
return;
7376
}
7477

7578
const openOcdScriptsPath = await getOpenOcdScripts(this.workspaceRoot);

0 commit comments

Comments
 (0)