Added Log For Error Code at connection

This commit is contained in:
Federico Barresi
2020-01-17 14:01:18 +01:00
parent fd7dd01a5e
commit 96d9df4b92

View File

@@ -142,7 +142,7 @@ namespace Sharp7.Rx
throw new InvalidOperationException(StringResources.StrErrorS7DriverNotInitialized);
var errorText = sharp7.ErrorText(errorCode);
Logger.LogError($"Error Code {errorCode} {errorText}");
await SetConnectionLostState();
return false;