Skip to content
Snippets Groups Projects
Commit b51a57ff authored by Jan David Mol's avatar Jan David Mol
Browse files

Made error messages bit more uniform

parent 4917708f
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ def fault_on_opcua_error(func):
try:
return func(self, *args, **kwargs)
except Exception as e:
self.error_stream("Communication with the OPC-UA server %s:%d failed. Reconnecting. Trace: %s" % (self.OPC_Server_Name, self.OPC_Server_Port, traceback.format_exc()))
self.error_stream("Communication with the server %s failed. Trace: %s", self.client.server_url.geturl(), traceback.format_exc())
self.Fault()
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment