Added a log message for when connected check fails.

This commit is contained in:
2022-05-07 12:15:45 +01:00
parent 885edba1c5
commit d9093635de
+3 -1
View File
@@ -3066,7 +3066,9 @@ namespace ASCOM.Meade.net
{ {
if (!IsConnected) 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);
} }
} }