Added a log message for when connected check fails.

This commit is contained in:
2022-05-07 12:15:45 +01:00
parent 0c70688b60
commit 5e65ea7946
+3 -1
View File
@@ -3066,7 +3066,9 @@ namespace ASCOM.Meade.net
{
if (!IsConnected)
{
throw new NotConnectedException($"Not connected to telescope when trying to execute: {message}");
var msg = $"Not connected to telescope when trying to execute: {message}";
LogMessage("CheckConnected", msg);
throw new NotConnectedException(msg);
}
}