From: Jo Sutton Date: Thu, 11 Jan 2024 00:49:58 +0000 (+1300) Subject: python:tests: Produce more helpful error message for future GKIDs X-Git-Tag: tdb-1.4.11~1758 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2215aaee0d7c22d9b2cd3c65a4da57299d28d15;p=thirdparty%2Fsamba.git python:tests: Produce more helpful error message for future GKIDs Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/gkdi.py b/python/samba/tests/gkdi.py index 375b444414c..3ea8afd8146 100644 --- a/python/samba/tests/gkdi.py +++ b/python/samba/tests/gkdi.py @@ -246,7 +246,8 @@ class GkdiBaseTest(TestCase): ) -> None: if gkid > current_gkid: raise GetKeyError( - HRES_E_INVALIDARG, "invalid request for a key from the future" + HRES_E_INVALIDARG, + f"invalid request for a key from the future: {gkid} > {current_gkid}", ) gkid_type = gkid.gkid_type()