Skip to content

Commit 54ca0db

Browse files
authored
Merge pull request #30 from per1234/fix-sketch-binary-check
Update check on debug config generation fail
2 parents 2c458f1 + cc16f9c commit 54ca0db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async function startDebug(_: ExtensionContext, config: DebugConfig): Promise<boo
123123
}
124124
if (!rawStdout) {
125125
if (rawStdErr) {
126-
if (rawStdErr.indexOf('compiled sketch not found in') !== -1) {
126+
if (rawStdErr.toLowerCase().indexOf('compiled sketch not found in') !== -1) {
127127
vscode.window.showErrorMessage(`Sketch '${path.basename(config.sketchPath)}' was not compiled. Please compile the sketch and start debugging again.`);
128128
} else {
129129
vscode.window.showErrorMessage(rawStdErr);

0 commit comments

Comments
 (0)