Added exception message on general communication exception.

Signed-off-by: Michele Cattafesta <michele.cattafesta@mesta-automation.com>
This commit is contained in:
Michele Cattafesta
2015-02-02 22:44:19 +01:00
parent 34f304179f
commit 145842e49e

View File

@@ -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;
} }
} }