papi: fix copy/paste error 25/30225/2
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Wed, 2 Dec 2020 04:45:38 +0000 (23:45 -0500)
committerOle Tr�an <otroan@employees.org>
Wed, 2 Dec 2020 10:07:45 +0000 (10:07 +0000)
Type: fix

Change-Id: I8bd20fb38e132f6ab8cbc0e73095b649b5946498
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/vpp-api/python/vpp_papi/vpp_serializer.py

index a568033..f46f207 100644 (file)
@@ -139,8 +139,8 @@ class String(Packer):
         self.fixed = True if num else False
         if self.fixed and not self.limit:
             raise VPPSerializerValueError(
-                "Invalid argument length for: {}, {} maximum {}".
-                format(list, len(list), self.limit))
+                "Invalid combination for: {}, {} fixed:{} limit:{}".
+                format(name, options, self.fixed, self.limit))
 
     def pack(self, list, kwargs=None):
         if not list: