Skip to content
Snippets Groups Projects
Commit d8d67a35 authored by Martin Teichmann's avatar Martin Teichmann Committed by Martin Teichmann
Browse files

improved error message

parent f4801ecf
No related branches found
No related tags found
2 merge requests!8Draft: move the index field to the end of packet,!6support higher-level EtherCat features
......@@ -222,7 +222,7 @@ class EBPFTerminal(Terminal):
await super().initialize(relative, absolute)
if (self.compatibility is not None and
(self.vendorId, self.productCode) not in self.compatibility):
raise RuntimeError("Incompatible Terminal")
raise RuntimeError(f"Incompatible Terminal: {self.vendorId}:{self.productCode}")
def allocate(self, packet, readonly):
if self.pdo_in_sz:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment