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

Commit fa37f57

Browse files
add logger message for if the serial monitor api was not retreived
1 parent 5f2cf62 commit fa37f57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/serialmonitor/serialMonitor.ts

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ export class SerialMonitor implements vscode.Disposable {
6161
});
6262

6363
this.serialMonitorApi = await getSerialMonitorApi(Version.latest, extensionContext);
64+
65+
if (this.serialMonitorApi === undefined) {
66+
Logger.error("Serial Monitor API was not retrieved. You may not have the most recent version of the Serial Monitor extension installed.")
67+
}
6468
}
6569

6670
public get initialized(): boolean {

0 commit comments

Comments
 (0)