From ab2e5bdfdf8966bca6f36202400c6c06235c0402 Mon Sep 17 00:00:00 2001 From: Martin Teichmann <martin.teichmann@xfel.eu> Date: Mon, 16 Jan 2023 10:34:51 +0100 Subject: [PATCH] improved error message --- ebpfcat/ebpfcat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebpfcat/ebpfcat.py b/ebpfcat/ebpfcat.py index a530fff..941a6a7 100644 --- a/ebpfcat/ebpfcat.py +++ b/ebpfcat/ebpfcat.py @@ -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: -- GitLab