diff --git a/ebpfcat/ethercat.py b/ebpfcat/ethercat.py
index b6e02a74f000a8a4d6bd1fa8e4cac3513cf484c9..f9c1f43a86105ab67568b224385c1fa0b08b9ffc 100644
--- a/ebpfcat/ethercat.py
+++ b/ebpfcat/ethercat.py
@@ -819,10 +819,12 @@ class Terminal:
                         index, subindex, data)
                 type, data = await self.mbx_recv()
             if type is not MBXType.COE:
-                raise EtherCatError(f"expected CoE, got {type}, {data} {odata} {index:x} {subindex}")
+                raise EtherCatError(f"expected CoE, got {type}, {data} "
+                                    f"{odata} {index:x}:{subindex:x}")
             coecmd, sdocmd, idx, subidx = unpack("<HBHB", data[:6])
             if idx != index or subindex != subidx:
-                raise EtherCatError(f"requested index {index}, got {idx}")
+                raise EtherCatError(f"requested index {index:x}:{subindex:x}, "
+                                    f"got {idx:x}:{subidx:x}")
             if coecmd >> 12 != CoECmd.SDORES.value:
                 raise EtherCatError(f"expected CoE SDORES, got {coecmd>>12:x}")
         else: