We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 174d560 commit 5cc2534Copy full SHA for 5cc2534
can/interfaces/socketcand/socketcand.py
@@ -323,7 +323,7 @@ def _expect_msg(self, msg):
323
if self.__tcp_tune:
324
self.__socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_QUICKACK, 1)
325
if not ascii_msg == msg:
326
- raise can.CanError(f"{msg} message expected!")
+ raise can.CanError(f"Expected '{msg}' got: '{ascii_msg}'")
327
328
def send(self, msg, timeout=None):
329
"""Transmit a message to the CAN bus.
0 commit comments