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

Commit 832bafb

Browse files
update error
1 parent 1e9eb8f commit 832bafb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/serialmonitor/serialMonitor.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,10 @@ export class SerialMonitor implements vscode.Disposable {
176176
private checkForUndefinedSerialMonitorApi(showError: boolean = false): void {
177177
const errorString = "Serial Monitor API was not retrieved. You may not have the most recent version of the Serial Monitor extension installed.";
178178
if (this.serialMonitorApi === undefined) {
179-
Logger.error(errorString)
180179
if (showError) {
181-
vscode.window.showErrorMessage(errorString);
180+
Logger.notifyUserError("UndefinedSerialMonitorApi", new Error(errorString));
181+
} else {
182+
Logger.traceError("UndefinedSerialMonitorApi", new Error(errorString));
182183
}
183184
}
184185
}

0 commit comments

Comments
 (0)