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

Commit

Permalink
update error
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft committed Mar 8, 2023
1 parent 1e9eb8f commit 832bafb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/serialmonitor/serialMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ export class SerialMonitor implements vscode.Disposable {
private checkForUndefinedSerialMonitorApi(showError: boolean = false): void {
const errorString = "Serial Monitor API was not retrieved. You may not have the most recent version of the Serial Monitor extension installed.";
if (this.serialMonitorApi === undefined) {
Logger.error(errorString)
if (showError) {
vscode.window.showErrorMessage(errorString);
Logger.notifyUserError("UndefinedSerialMonitorApi", new Error(errorString));
} else {
Logger.traceError("UndefinedSerialMonitorApi", new Error(errorString));
}
}
}
Expand Down

0 comments on commit 832bafb

Please sign in to comment.