Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit ca36bc2

Browse files
committed
Merge branch 'dev/bemcmorr/warn-no-examples' of https://github.com/microsoft/vscode-arduino into dev/bemcmorr/warn-no-examples
2 parents 49b0377 + f14b289 commit ca36bc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/serialmonitor/serialMonitor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ export class SerialMonitor implements vscode.Disposable {
144144
this.updatePortStatus(true);
145145
} catch (err) {
146146
Logger.warn("Serial Monitor failed to open");
147-
vscode.window.showErrorMessage(`Error opening serial port: ${err.toString()}`);
147+
if (err.message) {
148+
vscode.window.showErrorMessage(`Error opening serial port: ${err.message}`);
149+
}
148150
}
149151
}
150152

0 commit comments

Comments
 (0)