mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-17 14:28:25 +08:00
Added exception message on general communication exception.
Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
This commit is contained in:
@@ -219,10 +219,10 @@ namespace S7.Net
|
|||||||
LastErrorString = socketException.Message;
|
LastErrorString = socketException.Message;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
catch
|
catch(Exception exc)
|
||||||
{
|
{
|
||||||
LastErrorCode = ErrorCode.WriteData;
|
LastErrorCode = ErrorCode.WriteData;
|
||||||
LastErrorString = "";
|
LastErrorString = exc.Message;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user